Top Description Fields Constructors Methods
bsh

public Class JavaCharStream

extends Object
Class Inheritance

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

Field Summary

Modifier and TypeField and Description
pack-priv int
protected int[]
protected char[]
protected int[]
public int
pack-priv int
protected int
protected int
protected Reader
protected int
protected int
protected char[]
protected int
protected boolean
protected boolean
public static final boolean
pack-priv int

Constructor Summary

AccessConstructor and Description
public
JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)

public
JavaCharStream(Reader dstream, int startline, int startcolumn)

public
public
JavaCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)

public
JavaCharStream(InputStream dstream, int startline, int startcolumn)

public

Method Summary

Modifier and TypeMethod and Description
public void
adjustBeginLineColumn(int newLine, int newCol)

Method to adjust line and column numbers for the start of a token.

protected void
public void
backup(int amount)

public char
public void
Done()

protected void
ExpandBuff(boolean wrapAround)

protected void
public int
public int
public int
getColumn()

Deprecated
public int
public int
public String
public int
getLine()

Deprecated
public char[]
GetSuffix(int len)

pack-priv static final int
hexval(char c)

protected char
public char
public void
ReInit(Reader dstream, int startline, int startcolumn, int buffersize)

public void
ReInit(Reader dstream, int startline, int startcolumn)

public void
ReInit(Reader dstream)

public void
ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)

public void
ReInit(InputStream dstream, int startline, int startcolumn)

public void
protected void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

availableback to summary
pack-priv int available
bufcolumnback to summary
protected int[] bufcolumn
bufferback to summary
protected char[] buffer
buflineback to summary
protected int[] bufline
bufposback to summary
public int bufpos
bufsizeback to summary
pack-priv int bufsize
columnback to summary
protected int column
inBufback to summary
protected int inBuf
inputStreamback to summary
protected Reader inputStream
lineback to summary
protected int line
maxNextCharIndback to summary
protected int maxNextCharInd
nextCharBufback to summary
protected char[] nextCharBuf
nextCharIndback to summary
protected int nextCharInd
prevCharIsCRback to summary
protected boolean prevCharIsCR
prevCharIsLFback to summary
protected boolean prevCharIsLF
staticFlagback to summary
public static final boolean staticFlag
tokenBeginback to summary
pack-priv int tokenBegin

Constructor Detail

JavaCharStreamback to summary
public JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
JavaCharStreamback to summary
public JavaCharStream(Reader dstream, int startline, int startcolumn)
JavaCharStreamback to summary
public JavaCharStream(Reader dstream)
JavaCharStreamback to summary
public JavaCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
JavaCharStreamback to summary
public JavaCharStream(InputStream dstream, int startline, int startcolumn)
JavaCharStreamback to summary
public JavaCharStream(InputStream dstream)

Method Detail

adjustBeginLineColumnback to summary
public void adjustBeginLineColumn(int newLine, int newCol)

Method to adjust line and column numbers for the start of a token.

AdjustBuffSizeback to summary
protected void AdjustBuffSize()
backupback to summary
public void backup(int amount)
BeginTokenback to summary
public char BeginToken() throws IOException
Doneback to summary
public void Done()
ExpandBuffback to summary
protected void ExpandBuff(boolean wrapAround)
FillBuffback to summary
protected void FillBuff() throws IOException
getBeginColumnback to summary
public int getBeginColumn()
getBeginLineback to summary
public int getBeginLine()
getColumnback to summary
public int getColumn()

Deprecated

See Also
getEndColumn
getEndColumnback to summary
public int getEndColumn()
getEndLineback to summary
public int getEndLine()
GetImageback to summary
public String GetImage()
getLineback to summary
public int getLine()

Deprecated

See Also
getEndLine
GetSuffixback to summary
public char[] GetSuffix(int len)
hexvalback to summary
pack-priv static final int hexval(char c) throws IOException
ReadByteback to summary
protected char ReadByte() throws IOException
readCharback to summary
public char readChar() throws IOException
ReInitback to summary
public void ReInit(Reader dstream, int startline, int startcolumn, int buffersize)
ReInitback to summary
public void ReInit(Reader dstream, int startline, int startcolumn)
ReInitback to summary
public void ReInit(Reader dstream)
ReInitback to summary
public void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
ReInitback to summary
public void ReInit(InputStream dstream, int startline, int startcolumn)
ReInitback to summary
public void ReInit(InputStream dstream)
UpdateLineColumnback to summary
protected void UpdateLineColumn(char c)