All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class espresso.parser.ASCII_UCodeESC_CharStream

java.lang.Object
   |
   +----espresso.parser.ASCII_UCodeESC_CharStream

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


Variable Index

 o available
 o bufcolumn
 o buffer
 o bufline
 o bufpos
 o bufsize
 o column
 o inBuf
 o inputStream
 o line
 o maxNextCharInd
 o nextCharBuf
 o nextCharInd
 o prevCharIsCR
 o prevCharIsLF
 o staticFlag
 o tokenBegin

Constructor Index

 o ASCII_UCodeESC_CharStream(InputStream, int, int)
 o ASCII_UCodeESC_CharStream(InputStream, int, int, int)

Method Index

 o adjustBeginLineColumn(int, int)
Method to adjust line and column numbers for the start of a token.
 o AdjustBuffSize()
 o backup(int)
 o BeginToken()
 o Done()
 o ExpandBuff(boolean)
 o FillBuff()
 o getBeginColumn()
 o getBeginLine()
 o getColumn()
Deprecated.
 o getEndColumn()
 o getEndLine()
 o GetImage()
 o getLine()
Deprecated.
 o GetSuffix(int)
 o hexval(char)
 o ReadByte()
 o readChar()
 o ReInit(InputStream, int, int)
 o ReInit(InputStream, int, int, int)
 o UpdateLineColumn(char)

Variables

 o staticFlag
 public static final boolean staticFlag
 o bufpos
 public int bufpos
 o bufsize
 int bufsize
 o available
 int available
 o tokenBegin
 int tokenBegin
 o bufline
 private int bufline[]
 o bufcolumn
 private int bufcolumn[]
 o column
 private int column
 o line
 private int line
 o inputStream
 private InputStream inputStream
 o prevCharIsCR
 private boolean prevCharIsCR
 o prevCharIsLF
 private boolean prevCharIsLF
 o nextCharBuf
 private byte nextCharBuf[]
 o buffer
 private char buffer[]
 o maxNextCharInd
 private int maxNextCharInd
 o nextCharInd
 private int nextCharInd
 o inBuf
 private int inBuf

Constructors

 o ASCII_UCodeESC_CharStream
 public ASCII_UCodeESC_CharStream(InputStream dstream,
                                  int startline,
                                  int startcolumn,
                                  int buffersize)
 o ASCII_UCodeESC_CharStream
 public ASCII_UCodeESC_CharStream(InputStream dstream,
                                  int startline,
                                  int startcolumn)

Methods

 o hexval
 static final int hexval(char c) throws IOException
 o ExpandBuff
 private final void ExpandBuff(boolean wrapAround)
 o FillBuff
 private final void FillBuff() throws IOException
 o ReadByte
 private final byte ReadByte() throws IOException
 o BeginToken
 public final char BeginToken() throws IOException
 o AdjustBuffSize
 private final void AdjustBuffSize()
 o UpdateLineColumn
 private final void UpdateLineColumn(char c)
 o readChar
 public final char readChar() throws IOException
 o getColumn
 public final int getColumn()
Note: getColumn() is deprecated.

See Also:
getEndColumn
 o getLine
 public final int getLine()
Note: getLine() is deprecated.

See Also:
getEndLine
 o getEndColumn
 public final int getEndColumn()
 o getEndLine
 public final int getEndLine()
 o getBeginColumn
 public final int getBeginColumn()
 o getBeginLine
 public final int getBeginLine()
 o backup
 public final void backup(int amount)
 o ReInit
 public void ReInit(InputStream dstream,
                    int startline,
                    int startcolumn,
                    int buffersize)
 o ReInit
 public void ReInit(InputStream dstream,
                    int startline,
                    int startcolumn)
 o GetImage
 public final String GetImage()
 o GetSuffix
 public final char[] GetSuffix(int len)
 o Done
 public void Done()
 o adjustBeginLineColumn
 public void adjustBeginLineColumn(int newLine,
                                   int newCol)
Method to adjust line and column numbers for the start of a token.


All Packages  Class Hierarchy  This Package  Previous  Next  Index