net.sourceforge.cobertura.javancss

Class ASCII_UCodeESC_CharStream

public final class ASCII_UCodeESC_CharStream extends Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).
Field Summary
intavailable
int[]bufcolumn
char[]buffer
int[]bufline
intbufpos
intbufsize
intcolumn
intinBuf
ReaderinputStream
intline
intmaxNextCharInd
char[]nextCharBuf
intnextCharInd
booleanprevCharIsCR
booleanprevCharIsLF
static booleanstaticFlag
inttokenBegin
Constructor Summary
ASCII_UCodeESC_CharStream(Reader dstream, int startline, int startcolumn, int buffersize)
ASCII_UCodeESC_CharStream(InputStream dstream, int startline, int startcolumn)
Method Summary
voidadjustBuffSize()
voidbackup(int amount)
charbeginToken()
voidexpandBuff(boolean wrapAround)
voidfillBuff()
intgetBeginColumn()
intgetBeginLine()
intgetEndColumn()
intgetEndLine()
StringgetImage()
char[]getSuffix(int len)
static inthexval(char c)
charreadByte()
charreadChar()
voidupdateLineColumn(char c)

Field Detail

available

private int available

bufcolumn

private int[] bufcolumn

buffer

private char[] buffer

bufline

private int[] bufline

bufpos

private int bufpos

bufsize

private int bufsize

column

private int column

inBuf

private int inBuf

inputStream

private Reader inputStream

line

private int line

maxNextCharInd

private int maxNextCharInd

nextCharBuf

private char[] nextCharBuf

nextCharInd

private int nextCharInd

prevCharIsCR

private boolean prevCharIsCR

prevCharIsLF

private boolean prevCharIsLF

staticFlag

public static final boolean staticFlag

tokenBegin

private int tokenBegin

Constructor Detail

ASCII_UCodeESC_CharStream

private ASCII_UCodeESC_CharStream(Reader dstream, int startline, int startcolumn, int buffersize)

ASCII_UCodeESC_CharStream

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

Method Detail

adjustBuffSize

private final void adjustBuffSize()

backup

public final void backup(int amount)

beginToken

public final char beginToken()

expandBuff

private final void expandBuff(boolean wrapAround)

fillBuff

private final void fillBuff()

getBeginColumn

public final int getBeginColumn()

getBeginLine

public final int getBeginLine()

getEndColumn

public final int getEndColumn()

getEndLine

public final int getEndLine()

getImage

public final String getImage()

getSuffix

public final char[] getSuffix(int len)

hexval

private static final int hexval(char c)

readByte

private final char readByte()

readChar

public final char readChar()

updateLineColumn

private final void updateLineColumn(char c)