animation
Class AnimationReader

java.lang.Object
  extended by animation.AnimationReader

public class AnimationReader
extends java.lang.Object

Static class for reading from a file animation stream.

The format for file animation streams can be found here.


Constructor Summary
AnimationReader()
           
 
Method Summary
static byte[] readOneFrame(java.io.InputStream sequence)
          Returns the data from the next frame in the given file animation stream.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AnimationReader

public AnimationReader()
Method Detail

readOneFrame

public static byte[] readOneFrame(java.io.InputStream sequence)
                           throws java.io.IOException,
                                  java.io.EOFException
Returns the data from the next frame in the given file animation stream.

If no frames remain, returns null. If the stream ends prematurely, throws an EOFException.

Throws:
java.io.IOException
java.io.EOFException