net.sourceforge.cobertura.javancss
Class ASCII_UCodeESC_CharStream

java.lang.Object
  extended bynet.sourceforge.cobertura.javancss.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)
           
private 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()
           
 java.lang.String getImage()
           
 char[] getSuffix(int len)
           
private static int hexval(char c)
           
private  char readByte()
           
 char readChar()
           
private  void updateLineColumn(char c)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

staticFlag

public static final boolean staticFlag
See Also:
Constant Field Values

bufpos

private int bufpos

bufsize

private int bufsize

available

private int available

tokenBegin

private int tokenBegin

bufline

private int[] bufline

bufcolumn

private int[] bufcolumn

column

private int column

line

private int line

inputStream

private java.io.Reader inputStream

prevCharIsCR

private boolean prevCharIsCR

prevCharIsLF

private boolean prevCharIsLF

nextCharBuf

private char[] nextCharBuf

buffer

private char[] buffer

maxNextCharInd

private int maxNextCharInd

nextCharInd

private int nextCharInd

inBuf

private int inBuf
Constructor Detail

ASCII_UCodeESC_CharStream

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

ASCII_UCodeESC_CharStream

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

hexval

private static final int hexval(char c)
                         throws java.io.IOException
Throws:
java.io.IOException

expandBuff

private final void expandBuff(boolean wrapAround)

fillBuff

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

readByte

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

beginToken

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

adjustBuffSize

private final void adjustBuffSize()

updateLineColumn

private final void updateLineColumn(char c)

readChar

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

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)

getImage

public final java.lang.String getImage()

getSuffix

public final char[] getSuffix(int len)