sigmlanim
Class NonStreamedAnimationLoader

java.lang.Object
  extended by sigmlanim.StreamableAnimationLoader
      extended by sigmlanim.NonStreamedAnimationLoader

public class NonStreamedAnimationLoader
extends StreamableAnimationLoader

Generates a SiGML animation for a given SiGML URL or string, using JAnimgen in non-streamed generation mode.


Constructor Summary
NonStreamedAnimationLoader(JAOptions jopts, java.io.InputStream sins)
          Constructs a new animation loader for the given options set and SiGML input stream.
NonStreamedAnimationLoader(JAOptions jopts, java.lang.String url)
          Constructs a new animation loader for the given options set and SiGML URL.
NonStreamedAnimationLoader(JAOptions jopts, java.io.StringReader srdr)
          Constructs a new animation loader for the given options set and SiGML string reader.
NonStreamedAnimationLoader(JAOptions jopts, java.net.URL url)
          Constructs a new animation loader for the given options set and SiGML URL.
 
Method Summary
 SiGMLAnimation getAnimation()
          Returns the animation produced by this loader, or null if an error occurred during the SiGML loading or animation generation steps.
static void primeLoader()
          Primes the SiGML input software by performing an initial input operation on a short SiGML string, which should speed up subsequent SiGML input operations.
 void processSiGML()
          Processes this loader's SiGML input, generating the corresponding sequence of signs from it and attaching animation frames to those signs.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NonStreamedAnimationLoader

public NonStreamedAnimationLoader(JAOptions jopts,
                                  java.net.URL url)
Constructs a new animation loader for the given options set and SiGML URL.


NonStreamedAnimationLoader

public NonStreamedAnimationLoader(JAOptions jopts,
                                  java.lang.String url)
Constructs a new animation loader for the given options set and SiGML URL.


NonStreamedAnimationLoader

public NonStreamedAnimationLoader(JAOptions jopts,
                                  java.io.StringReader srdr)
Constructs a new animation loader for the given options set and SiGML string reader.


NonStreamedAnimationLoader

public NonStreamedAnimationLoader(JAOptions jopts,
                                  java.io.InputStream sins)
Constructs a new animation loader for the given options set and SiGML input stream.

Method Detail

processSiGML

public void processSiGML()
Processes this loader's SiGML input, generating the corresponding sequence of signs from it and attaching animation frames to those signs.

Specified by:
processSiGML in class StreamableAnimationLoader

getAnimation

public SiGMLAnimation getAnimation()
Returns the animation produced by this loader, or null if an error occurred during the SiGML loading or animation generation steps.

Specified by:
getAnimation in class StreamableAnimationLoader

primeLoader

public static void primeLoader()
Primes the SiGML input software by performing an initial input operation on a short SiGML string, which should speed up subsequent SiGML input operations.