net.sourceforge.cobertura.javancss

Class ASCII_UCodeESC_CharStream


public final class ASCII_UCodeESC_CharStream
extends java.lang.Object

An implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (with java-like unicode escape processing).

Field Summary

private int
available
private int[]
bufcolumn
private char[]
buffer
private int[]
bufline
private int
bufpos
private int
bufsize
private int
column
private int
inBuf
private java.io.Reader
inputStream
private int
line
private int
maxNextCharInd
private char[]
nextCharBuf
private int
nextCharInd
private boolean
prevCharIsCR
private boolean
prevCharIsLF
static boolean
staticFlag
private int
tokenBegin

Constructor Summary

ASCII_UCodeESC_CharStream(java.io.InputStream dstream, int startline, int startcolumn)
ASCII_UCodeESC_CharStream(java.io.Reader dstream, int startline, int startcolumn, int buffersize)

Method Summary

private void
adjustBuffSize()
void
backup(int amount)
char
beginToken()
private void
expandBuff(boolean wrapAround)
private void
fillBuff()
int
getBeginColumn()
int
getBeginLine()
int
getEndColumn()
int
getEndLine()
String
getImage()
char[]
getSuffix(int len)
private static int
hexval(char c)
private char
readByte()
char
readChar()
private void
updateLineColumn(char c)

Field Details

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 java.io.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
Field Value:
false

tokenBegin

private int tokenBegin

Constructor Details

ASCII_UCodeESC_CharStream

public ASCII_UCodeESC_CharStream(java.io.InputStream dstream,
                                 int startline,
                                 int startcolumn)

ASCII_UCodeESC_CharStream

private ASCII_UCodeESC_CharStream(java.io.Reader dstream,
                                  int startline,
                                  int startcolumn,
                                  int buffersize)

Method Details

adjustBuffSize

private final void adjustBuffSize()

backup

public final void backup(int amount)

beginToken

public final char beginToken()
            throws java.io.IOException

expandBuff

private final void expandBuff(boolean wrapAround)

fillBuff

private final void fillBuff()
            throws java.io.IOException

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)
            throws java.io.IOException

readByte

private final char readByte()
            throws java.io.IOException

readChar

public final char readChar()
            throws java.io.IOException

updateLineColumn

private final void updateLineColumn(char c)