Class JavaCharStream
java.lang.Object
com.thaiopensource.relaxng.parse.compact.JavaCharStream
An implementation of interface CharStream, where the stream is assumed to
contain 16-bit unicode characters.
-
Field Summary
-
Constructor Summary
ConstructorDescriptionJavaCharStream
(InputStream dstream) JavaCharStream
(InputStream dstream, int startline, int startcolumn) JavaCharStream
(InputStream dstream, int startline, int startcolumn, int buffersize) JavaCharStream
(InputStream dstream, String encoding) JavaCharStream
(InputStream dstream, String encoding, int startline, int startcolumn) JavaCharStream
(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) JavaCharStream
(Reader dstream) JavaCharStream
(Reader dstream, int startline, int startcolumn) JavaCharStream
(Reader dstream, int startline, int startcolumn, int buffersize) -
Method Summary
Modifier and TypeMethodDescriptionvoid
adjustBeginLineColumn
(int newLine, int newCol) Method to adjust line and column numbers for the start of a token.final void
backup
(int amount) final char
void
Done()
final int
final int
final int
Deprecated.final int
final int
final String
GetImage()
final int
getLine()
Deprecated.final char[]
GetSuffix
(int len) protected int
getTabSize
(int i) final char
readChar()
void
ReInit
(InputStream dstream) void
ReInit
(InputStream dstream, int startline, int startcolumn) void
ReInit
(InputStream dstream, int startline, int startcolumn, int buffersize) void
ReInit
(InputStream dstream, String encoding) void
ReInit
(InputStream dstream, String encoding, int startline, int startcolumn) void
ReInit
(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) void
void
void
protected void
setTabSize
(int i)
-
Field Details
-
staticFlag
public static final boolean staticFlag- See Also:
-
bufpos
public int bufpos
-
-
Constructor Details
-
JavaCharStream
-
JavaCharStream
-
JavaCharStream
-
JavaCharStream
public JavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
JavaCharStream
-
JavaCharStream
public JavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
JavaCharStream
-
JavaCharStream
- Throws:
UnsupportedEncodingException
-
JavaCharStream
-
-
Method Details
-
setTabSize
protected void setTabSize(int i) -
getTabSize
protected int getTabSize(int i) -
BeginToken
public final char BeginToken() throws com.thaiopensource.relaxng.parse.compact.EOFException- Throws:
com.thaiopensource.relaxng.parse.compact.EOFException
-
readChar
public final char readChar() throws com.thaiopensource.relaxng.parse.compact.EOFException- Throws:
com.thaiopensource.relaxng.parse.compact.EOFException
-
getColumn
public final int getColumn()Deprecated.- See Also:
-
getLine
public final int getLine()Deprecated.- See Also:
-
getEndColumn
public final int getEndColumn() -
getEndLine
public final int getEndLine() -
getBeginColumn
public final int getBeginColumn() -
getBeginLine
public final int getBeginLine() -
backup
public final void backup(int amount) -
ReInit
-
ReInit
-
ReInit
-
ReInit
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
ReInit
-
ReInit
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
ReInit
-
ReInit
- Throws:
UnsupportedEncodingException
-
ReInit
-
GetImage
-
GetSuffix
public final char[] GetSuffix(int len) -
Done
public void Done() -
adjustBeginLineColumn
public void adjustBeginLineColumn(int newLine, int newCol) Method to adjust line and column numbers for the start of a token.
-