org.jscience.ml.sbml.jep
Class JavaCharStream

java.lang.Object
  extended by org.jscience.ml.sbml.jep.JavaCharStream

public final class JavaCharStream
extends java.lang.Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).


Field Summary
 int bufpos
          DOCUMENT ME!
static boolean staticFlag
          DOCUMENT ME!
 
Constructor Summary
JavaCharStream(java.io.InputStream dstream)
          Creates a new JavaCharStream object.
JavaCharStream(java.io.InputStream dstream, int startline, int startcolumn)
          Creates a new JavaCharStream object.
JavaCharStream(java.io.InputStream dstream, int startline, int startcolumn, int buffersize)
          Creates a new JavaCharStream object.
JavaCharStream(java.io.Reader dstream)
          Creates a new JavaCharStream object.
JavaCharStream(java.io.Reader dstream, int startline, int startcolumn)
          Creates a new JavaCharStream object.
JavaCharStream(java.io.Reader dstream, int startline, int startcolumn, int buffersize)
          Creates a new JavaCharStream object.
 
Method Summary
 void adjustBeginLineColumn(int newLine, int newCol)
          Method to adjust line and column numbers for the start of a token.
 void backup(int amount)
          DOCUMENT ME!
 char BeginToken()
          DOCUMENT ME!
 void Done()
          DOCUMENT ME!
 int getBeginColumn()
          DOCUMENT ME!
 int getBeginLine()
          DOCUMENT ME!
 int getColumn()
          Deprecated.  
 int getEndColumn()
          DOCUMENT ME!
 int getEndLine()
          DOCUMENT ME!
 java.lang.String GetImage()
          DOCUMENT ME!
 int getLine()
          Deprecated.  
 char[] GetSuffix(int len)
          DOCUMENT ME!
 char readChar()
          DOCUMENT ME!
 void ReInit(java.io.InputStream dstream)
          DOCUMENT ME!
 void ReInit(java.io.InputStream dstream, int startline, int startcolumn)
          DOCUMENT ME!
 void ReInit(java.io.InputStream dstream, int startline, int startcolumn, int buffersize)
          DOCUMENT ME!
 void ReInit(java.io.Reader dstream)
          DOCUMENT ME!
 void ReInit(java.io.Reader dstream, int startline, int startcolumn)
          DOCUMENT ME!
 void ReInit(java.io.Reader dstream, int startline, int startcolumn, int buffersize)
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticFlag

public static final boolean staticFlag
DOCUMENT ME!

See Also:
Constant Field Values

bufpos

public int bufpos
DOCUMENT ME!

Constructor Detail

JavaCharStream

public JavaCharStream(java.io.Reader dstream,
                      int startline,
                      int startcolumn,
                      int buffersize)
Creates a new JavaCharStream object.

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!
buffersize - DOCUMENT ME!

JavaCharStream

public JavaCharStream(java.io.Reader dstream,
                      int startline,
                      int startcolumn)
Creates a new JavaCharStream object.

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!

JavaCharStream

public JavaCharStream(java.io.Reader dstream)
Creates a new JavaCharStream object.

Parameters:
dstream - DOCUMENT ME!

JavaCharStream

public JavaCharStream(java.io.InputStream dstream,
                      int startline,
                      int startcolumn,
                      int buffersize)
Creates a new JavaCharStream object.

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!
buffersize - DOCUMENT ME!

JavaCharStream

public JavaCharStream(java.io.InputStream dstream,
                      int startline,
                      int startcolumn)
Creates a new JavaCharStream object.

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!

JavaCharStream

public JavaCharStream(java.io.InputStream dstream)
Creates a new JavaCharStream object.

Parameters:
dstream - DOCUMENT ME!
Method Detail

BeginToken

public final char BeginToken()
                      throws java.io.IOException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.io.IOException

GetImage

public final java.lang.String GetImage()
DOCUMENT ME!

Returns:
DOCUMENT ME!

GetSuffix

public final char[] GetSuffix(int len)
DOCUMENT ME!

Parameters:
len - DOCUMENT ME!
Returns:
DOCUMENT ME!

backup

public final void backup(int amount)
DOCUMENT ME!

Parameters:
amount - DOCUMENT ME!

getBeginColumn

public final int getBeginColumn()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getBeginLine

public final int getBeginLine()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getColumn

public final int getColumn()
Deprecated. 

DOCUMENT ME!

Returns:
DOCUMENT ME!
See Also:
getEndColumn()

getEndColumn

public final int getEndColumn()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getEndLine

public final int getEndLine()
DOCUMENT ME!

Returns:
DOCUMENT ME!

getLine

public final int getLine()
Deprecated. 

DOCUMENT ME!

Returns:
DOCUMENT ME!
See Also:
getEndLine()

readChar

public final char readChar()
                    throws java.io.IOException
DOCUMENT ME!

Returns:
DOCUMENT ME!
Throws:
java.lang.Error - DOCUMENT ME!
java.io.IOException

Done

public void Done()
DOCUMENT ME!


ReInit

public void ReInit(java.io.Reader dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!
buffersize - DOCUMENT ME!

ReInit

public void ReInit(java.io.Reader dstream,
                   int startline,
                   int startcolumn)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!

ReInit

public void ReInit(java.io.Reader dstream)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!

ReInit

public void ReInit(java.io.InputStream dstream,
                   int startline,
                   int startcolumn,
                   int buffersize)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!
buffersize - DOCUMENT ME!

ReInit

public void ReInit(java.io.InputStream dstream,
                   int startline,
                   int startcolumn)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!
startline - DOCUMENT ME!
startcolumn - DOCUMENT ME!

ReInit

public void ReInit(java.io.InputStream dstream)
DOCUMENT ME!

Parameters:
dstream - DOCUMENT ME!

adjustBeginLineColumn

public void adjustBeginLineColumn(int newLine,
                                  int newCol)
Method to adjust line and column numbers for the start of a token.

Parameters:
newLine - DOCUMENT ME!
newCol - DOCUMENT ME!