public class JavaCharStream extends Object
Modifier and Type | Field and Description |
---|---|
protected static int[] |
bufcolumn |
protected static char[] |
buffer |
protected static int[] |
bufline |
static int |
bufpos
Position in buffer.
|
protected static int |
column |
protected static int |
inBuf |
protected static Reader |
inputStream |
protected static int |
line |
protected static int |
maxNextCharInd |
protected static char[] |
nextCharBuf |
protected static int |
nextCharInd |
protected static boolean |
prevCharIsCR |
protected static boolean |
prevCharIsLF |
static boolean |
staticFlag
Whether parser is static.
|
protected static int |
tabSize |
Constructor and Description |
---|
JavaCharStream(InputStream dstream)
Constructor.
|
JavaCharStream(InputStream dstream,
int startline,
int startcolumn)
Constructor.
|
JavaCharStream(InputStream dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
JavaCharStream(InputStream dstream,
String encoding)
Constructor.
|
JavaCharStream(InputStream dstream,
String encoding,
int startline,
int startcolumn)
Constructor.
|
JavaCharStream(InputStream dstream,
String encoding,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
JavaCharStream(Reader dstream)
Constructor.
|
JavaCharStream(Reader dstream,
int startline,
int startcolumn)
Constructor.
|
JavaCharStream(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static void |
adjustBeginLineColumn(int newLine,
int newCol)
Method to adjust line and column numbers for the start of a token.
|
protected static void |
AdjustBuffSize() |
static void |
backup(int amount)
Retreat.
|
static char |
BeginToken() |
static void |
Done()
Set buffers back to null when finished.
|
protected static void |
ExpandBuff(boolean wrapAround) |
protected static void |
FillBuff() |
static int |
getBeginColumn() |
static int |
getBeginLine() |
static int |
getColumn()
Deprecated.
|
static int |
getEndColumn()
Get end column.
|
static int |
getEndLine()
Get end line.
|
static String |
GetImage() |
static int |
getLine()
Deprecated.
|
static char[] |
GetSuffix(int len) |
protected static int |
getTabSize(int i) |
protected static char |
ReadByte() |
static char |
readChar()
Read a character.
|
void |
ReInit(InputStream dstream)
Reinitialise.
|
void |
ReInit(InputStream dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(InputStream dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
ReInit(InputStream dstream,
String encoding)
Reinitialise.
|
void |
ReInit(InputStream dstream,
String encoding,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(InputStream dstream,
String encoding,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
void |
ReInit(Reader dstream)
Reinitialise.
|
void |
ReInit(Reader dstream,
int startline,
int startcolumn)
Reinitialise.
|
void |
ReInit(Reader dstream,
int startline,
int startcolumn,
int buffersize)
Reinitialise.
|
protected static void |
setTabSize(int i) |
protected static void |
UpdateLineColumn(char c) |
public static final boolean staticFlag
public static int bufpos
protected static int[] bufline
protected static int[] bufcolumn
protected static int column
protected static int line
protected static boolean prevCharIsCR
protected static boolean prevCharIsLF
protected static Reader inputStream
protected static char[] nextCharBuf
protected static char[] buffer
protected static int maxNextCharInd
protected static int nextCharInd
protected static int inBuf
protected static int tabSize
public JavaCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
public JavaCharStream(Reader dstream, int startline, int startcolumn)
public JavaCharStream(Reader dstream)
public JavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn, int buffersize) throws UnsupportedEncodingException
UnsupportedEncodingException
public JavaCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
public JavaCharStream(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
UnsupportedEncodingException
public JavaCharStream(InputStream dstream, int startline, int startcolumn)
public JavaCharStream(InputStream dstream, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public JavaCharStream(InputStream dstream)
protected static void setTabSize(int i)
protected static int getTabSize(int i)
protected static void ExpandBuff(boolean wrapAround)
protected static void FillBuff() throws IOException
IOException
protected static char ReadByte() throws IOException
IOException
public static char BeginToken() throws IOException
IOException
protected static void AdjustBuffSize()
protected static void UpdateLineColumn(char c)
public static char readChar() throws IOException
IOException
@Deprecated public static int getColumn()
@Deprecated public static int getLine()
public static int getEndColumn()
public static int getEndLine()
public static int getBeginColumn()
public static int getBeginLine()
public static void backup(int amount)
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) throws UnsupportedEncodingException
UnsupportedEncodingException
public void ReInit(InputStream dstream, int startline, int startcolumn, int buffersize)
public void ReInit(InputStream dstream, String encoding, int startline, int startcolumn) throws UnsupportedEncodingException
UnsupportedEncodingException
public void ReInit(InputStream dstream, int startline, int startcolumn)
public void ReInit(InputStream dstream, String encoding) throws UnsupportedEncodingException
UnsupportedEncodingException
public void ReInit(InputStream dstream)
public static String GetImage()
public static char[] GetSuffix(int len)
public static void Done()
public static void adjustBeginLineColumn(int newLine, int newCol)
Copyright © 2014. All rights reserved.