Top Description Fields Constructors Methods
org.apache.derby.impl.tools.ij

public Class SimpleCharStream

extends Object
Class Inheritance

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode 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 boolean
protected boolean
public static final boolean
protected int
pack-priv int

Constructor Summary

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

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

public
public
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize)

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

public
SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn)

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

public
SimpleCharStream(InputStream dstream, String encoding)

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.

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)

protected int
getTabSize(int i)

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, String encoding, int startline, int startcolumn, int buffersize)

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

public void
ReInit(InputStream dstream, String encoding)

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

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

protected void
setTabSize(int i)

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
prevCharIsCRback to summary
protected boolean prevCharIsCR
prevCharIsLFback to summary
protected boolean prevCharIsLF
staticFlagback to summary
public static final boolean staticFlag
tabSizeback to summary
protected int tabSize
tokenBeginback to summary
pack-priv int tokenBegin

Constructor Detail

SimpleCharStreamback to summary
public SimpleCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
SimpleCharStreamback to summary
public SimpleCharStream(Reader dstream, int startline, int startcolumn)
SimpleCharStreamback to summary
public SimpleCharStream(Reader dstream)
SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, int startline, int startcolumn)
SimpleCharStreamback to summary
public SimpleCharStream(InputStream dstream, String encoding) throws UnsupportedEncodingException
SimpleCharStreamback to summary
public SimpleCharStream(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.

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)
getTabSizeback to summary
protected int getTabSize(int i)
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, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
ReInitback to summary
public void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
ReInitback to summary
public void ReInit(InputStream dstream, String encoding) throws UnsupportedEncodingException
ReInitback to summary
public void ReInit(InputStream dstream)
ReInitback to summary
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
ReInitback to summary
public void ReInit(InputStream dstream, int startline, int startcolumn)
setTabSizeback to summary
protected void setTabSize(int i)
UpdateLineColumnback to summary
protected void UpdateLineColumn(char c)