Top Description Fields Constructors Methods
com.sun.tools.rngom.parse.compact

public final Class UCode_UCodeESC_CharStream

extends Object
Class Inheritance
Imports
com.sun.tools.rngom.ast.builder.BuildException, com.sun.tools.rngom.util.Utf16, java.io.IOException

An implementation of interface CharStream, where the stream is assumed to contain 16-bit unicode characters.

Field Summary

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

Constructor Summary

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

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

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

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

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.

private void
public void
backup(int amount)

public char
public void
Done()

private void
ExpandBuff(boolean wrapAround)

private void
public int
public int
public int
getColumn()
Deprecated @see #getEndColumn

public int
public int
public String
public int
getLine()
Deprecated @see #getEndLine

public char[]
GetSuffix(int len)

pack-priv static int
hexval(char c)

private char
private 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(InputStream dstream, int startline, int startcolumn, int buffersize)

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

private void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

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

Constructor Detail

UCode_UCodeESC_CharStreamback to summary
public UCode_UCodeESC_CharStream(Reader dstream, int startline, int startcolumn, int buffersize)
UCode_UCodeESC_CharStreamback to summary
public UCode_UCodeESC_CharStream(Reader dstream, int startline, int startcolumn)
UCode_UCodeESC_CharStreamback to summary
public UCode_UCodeESC_CharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
UCode_UCodeESC_CharStreamback to summary
public UCode_UCodeESC_CharStream(InputStream dstream, int startline, int startcolumn)

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
private void AdjustBuffSize()
backupback to summary
public void backup(int amount)
BeginTokenback to summary
public char BeginToken() throws EOFException
Doneback to summary
public void Done()
ExpandBuffback to summary
private void ExpandBuff(boolean wrapAround)
FillBuffback to summary
private void FillBuff() throws EOFException
getBeginColumnback to summary
public int getBeginColumn()
getBeginLineback to summary
public int getBeginLine()
getColumnback to summary
public int getColumn()

Deprecated

@see #getEndColumn

Annotations
@Deprecated
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 #getEndLine

Annotations
@Deprecated
GetSuffixback to summary
public char[] GetSuffix(int len)
hexvalback to summary
pack-priv static int hexval(char c)
PeekCharback to summary
private char PeekChar() throws EOFException
ReadCharback to summary
private char ReadChar() throws EOFException
readCharback to summary
public char readChar() throws EOFException
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(InputStream dstream, int startline, int startcolumn, int buffersize)
ReInitback to summary
public void ReInit(InputStream dstream, int startline, int startcolumn)
skipBOMback to summary
private void skipBOM()
UpdateLineColumnback to summary
private void UpdateLineColumn(char c)