public class BOMSafeJavaCharStream extends Object
| Modifier and Type | Field and Description |
|---|---|
protected int |
available |
protected int[] |
bufcolumn |
protected char[] |
buffer |
protected int[] |
bufline |
int |
bufpos
Position in buffer.
|
protected int |
bufsize |
protected int |
column |
protected int |
inBuf |
protected Reader |
inputStream |
protected int |
line |
protected int |
maxNextCharInd |
protected char[] |
nextCharBuf |
protected int |
nextCharInd |
protected boolean |
prevCharIsCR |
protected boolean |
prevCharIsLF |
static boolean |
staticFlag
Whether parser is static.
|
protected int |
tabSize |
protected int |
tokenBegin |
| Modifier | Constructor and Description |
|---|---|
|
BOMSafeJavaCharStream(InputStream dstream,
String encoding,
int startline,
int startcolumn)
Constructor.
|
protected |
BOMSafeJavaCharStream(InputStream dstream,
String encoding,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
|
BOMSafeJavaCharStream(Reader dstream,
int startline,
int startcolumn)
Constructor.
|
protected |
BOMSafeJavaCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
backup(int amount)
Retreat.
|
char |
BeginToken() |
int |
getBeginColumn() |
int |
getBeginLine() |
int |
getEndColumn() |
int |
getEndLine() |
String |
GetImage() |
char |
readChar()
Read a character.
|
void |
ReInit(InputStream dstream,
String encoding,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(Reader dstream,
int startline,
int startcolumn)
Reinitialise.
|
public static final boolean staticFlag
public int bufpos
protected int bufsize
protected int available
protected int tokenBegin
protected int[] bufline
protected int[] bufcolumn
protected int column
protected int line
protected boolean prevCharIsCR
protected boolean prevCharIsLF
protected Reader inputStream
protected char[] nextCharBuf
protected char[] buffer
protected int maxNextCharInd
protected int nextCharInd
protected int inBuf
protected int tabSize
protected BOMSafeJavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
dstream - streamstartline - start linestartcolumn - start columnbuffersize - buffer sizepublic BOMSafeJavaCharStream(Reader dstream, int startline, int startcolumn)
dstream - streamstartline - start linestartcolumn - start columnprotected BOMSafeJavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
dstream - streamencoding - encodingstartline - start linestartcolumn - start columnbuffersize - buffer sizeUnsupportedEncodingException - if encoding unsupportedpublic BOMSafeJavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
dstream - streamencoding - encodingstartline - start linestartcolumn - start columnUnsupportedEncodingException - if encoding unsupportedpublic char BeginToken()
throws IOException
IOException - IO exceptionpublic char readChar()
throws IOException
IOException - IO exceptionpublic int getEndColumn()
public int getEndLine()
public int getBeginColumn()
public int getBeginLine()
public void backup(int amount)
amount - number of characters to back uppublic void ReInit(Reader dstream, int startline, int startcolumn)
dstream - streamstartline - start linestartcolumn - start columnpublic void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
dstream - streamencoding - encodingstartline - start linestartcolumn - start columnUnsupportedEncodingException - for unsupported encodingpublic String GetImage()
Copyright © 2014 The University of Manchester. All Rights Reserved.