sigmlanim
Class StreamedAnimationLoader

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

public class StreamedAnimationLoader
extends StreamableAnimationLoader

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


Constructor Summary
StreamedAnimationLoader(JAOptions jopts, java.io.InputStream sins)
          Constructs a new animation loader for the given options set and SiGML input stream, and with no SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.io.InputStream sins, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given options set and SiGML input stream, and using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.lang.String url)
          Constructs a new animation loader for the given options set and SiGML URL, and with no SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.io.StringReader srdr)
          Constructs a new animation loader for the given options set and SiGML string reader, and with no SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.io.StringReader srdr, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given options set and SiGML string reader, and using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.lang.String url, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given options set and SiGML URL, using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.net.URL url)
          Constructs a new animation loader for the given options set and SiGML URL, and with no SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(JAOptions jopts, java.net.URL url, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given options set and SiGML URL, using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(java.lang.String av, JAOptions jopts, java.io.InputStream sins, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given avatar, options set and SiGML input stream, and using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(java.lang.String av, JAOptions jopts, java.lang.String url)
          Constructs a new animation loader for the given avatar, options set and SiGML URL, and with no SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(java.lang.String av, JAOptions jopts, java.io.StringReader srdr, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given options set and SiGML string reader, and using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(java.lang.String av, JAOptions jopts, java.lang.String url, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given avatar, options set and SiGML URL, using the given SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(java.lang.String av, JAOptions jopts, java.net.URL url)
          Constructs a new animation loader for the given avatar, options set and SiGML URL, and with no SiGMLAnimationLoadEventHandler.
StreamedAnimationLoader(java.lang.String av, JAOptions jopts, java.net.URL url, SiGMLAnimationLoadEventHandler saleh)
          Constructs a new animation loader for the given avatar, options set and SiGML URL, using the given SiGMLAnimationLoadEventHandler.
 
Method Summary
 SiGMLAnimation getAnimation()
          Returns this loader's animation, which for a streamed loader is the same as its animation build handler, and which may not be complete at the time this invocation returns.
static void primeLoader()
          Primes this loader class by creating an instance to scan a simple SiGML string (without generating an animation for it).
 void processSiGML()
          Processes this loader's SiGML input by running its SiGML scanner, possibly in a separate thread, as determined by the setting of RUN_SCAN_IN_THREAD.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StreamedAnimationLoader

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


StreamedAnimationLoader

public StreamedAnimationLoader(java.lang.String av,
                               JAOptions jopts,
                               java.net.URL url)
Constructs a new animation loader for the given avatar, options set and SiGML URL, and with no SiGMLAnimationLoadEventHandler.


StreamedAnimationLoader

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


StreamedAnimationLoader

public StreamedAnimationLoader(java.lang.String av,
                               JAOptions jopts,
                               java.net.URL url,
                               SiGMLAnimationLoadEventHandler saleh)
Constructs a new animation loader for the given avatar, options set and SiGML URL, using the given SiGMLAnimationLoadEventHandler.


StreamedAnimationLoader

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


StreamedAnimationLoader

public StreamedAnimationLoader(java.lang.String av,
                               JAOptions jopts,
                               java.lang.String url)
Constructs a new animation loader for the given avatar, options set and SiGML URL, and with no SiGMLAnimationLoadEventHandler.


StreamedAnimationLoader

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


StreamedAnimationLoader

public StreamedAnimationLoader(java.lang.String av,
                               JAOptions jopts,
                               java.lang.String url,
                               SiGMLAnimationLoadEventHandler saleh)
Constructs a new animation loader for the given avatar, options set and SiGML URL, using the given SiGMLAnimationLoadEventHandler.


StreamedAnimationLoader

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


StreamedAnimationLoader

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


StreamedAnimationLoader

public StreamedAnimationLoader(java.lang.String av,
                               JAOptions jopts,
                               java.io.StringReader srdr,
                               SiGMLAnimationLoadEventHandler saleh)
Constructs a new animation loader for the given options set and SiGML string reader, and using the given SiGMLAnimationLoadEventHandler.


StreamedAnimationLoader

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


StreamedAnimationLoader

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


StreamedAnimationLoader

public StreamedAnimationLoader(java.lang.String av,
                               JAOptions jopts,
                               java.io.InputStream sins,
                               SiGMLAnimationLoadEventHandler saleh)
Constructs a new animation loader for the given avatar, options set and SiGML input stream, and using the given SiGMLAnimationLoadEventHandler.

Method Detail

processSiGML

public void processSiGML()
Processes this loader's SiGML input by running its SiGML scanner, possibly in a separate thread, as determined by the setting of RUN_SCAN_IN_THREAD.

Specified by:
processSiGML in class StreamableAnimationLoader

getAnimation

public SiGMLAnimation getAnimation()
Returns this loader's animation, which for a streamed loader is the same as its animation build handler, and which may not be complete at the time this invocation returns.

Specified by:
getAnimation in class StreamableAnimationLoader

primeLoader

public static void primeLoader()
Primes this loader class by creating an instance to scan a simple SiGML string (without generating an animation for it).