galaxy.lang
Class FrameReader

java.lang.Object
  |
  +--galaxy.lang.FrameReader

public class FrameReader
extends java.lang.Object

This class provides the ability to read a frame from a stream of characters. Construct the object with a character stream Reader, then call getFrame().

See Also:
GFrame, getFrame()

Constructor Summary
FrameReader(java.io.Reader reader)
          Construct a frame reader with an input stream.
 
Method Summary
 GFrame getFrame()
          Read the frame using the character stream Reader and return it.
static void main(java.lang.String[] args)
          Test routine.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FrameReader

public FrameReader(java.io.Reader reader)
Construct a frame reader with an input stream. Use getFrame() to read the frame.
Parameters:
reader - the reader
See Also:
getFrame()
Method Detail

getFrame

public GFrame getFrame()
                throws java.lang.Exception
Read the frame using the character stream Reader and return it.
Returns:
the frame
Throws:
java.lang.Exception - Thrown if error

main

public static void main(java.lang.String[] args)
Test routine.