Package net.sourceforge.pmd.lang.vm.util
Class VelocityCharStream
- java.lang.Object
-
- net.sourceforge.pmd.lang.vm.util.VelocityCharStream
-
- All Implemented Interfaces:
CharStream
@Deprecated public final class VelocityCharStream extends Object implements CharStream
Deprecated.Will be removed, replaced with SimpleCharStreamAn implementation of interface CharStream, where the stream is assumed to contain only ASCII characters (without unicode processing).
-
-
Field Summary
Fields Modifier and Type Field Description int
bufpos
Deprecated.static boolean
STATIC_FLAG
Deprecated.
-
Constructor Summary
Constructors Constructor Description VelocityCharStream(InputStream dstream, int startline, int startcolumn)
Deprecated.VelocityCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
Deprecated.VelocityCharStream(Reader dstream, int startline, int startcolumn)
Deprecated.VelocityCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
adjustBeginLineColumn(int newLine, int newCol)
Deprecated.Method to adjust line and column numbers for the start of a token.void
backup(int amount)
Deprecated.char
BeginToken()
Deprecated.void
Done()
Deprecated.int
getBeginColumn()
Deprecated.int
getBeginLine()
Deprecated.int
getColumn()
Deprecated.int
getEndColumn()
Deprecated.int
getEndLine()
Deprecated.String
GetImage()
Deprecated.int
getLine()
Deprecated.char[]
GetSuffix(int len)
Deprecated.char
readChar()
Deprecated.void
reInit(InputStream dstream, int startline, int startcolumn)
Deprecated.void
reInit(InputStream dstream, int startline, int startcolumn, int buffersize)
Deprecated.void
reInit(Reader dstream, int startline, int startcolumn)
Deprecated.void
reInit(Reader dstream, int startline, int startcolumn, int buffersize)
Deprecated.
-
-
-
Field Detail
-
STATIC_FLAG
public static final boolean STATIC_FLAG
Deprecated.- See Also:
- Constant Field Values
-
bufpos
public int bufpos
Deprecated.
-
-
Constructor Detail
-
VelocityCharStream
public VelocityCharStream(InputStream dstream, int startline, int startcolumn, int buffersize)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-buffersize
-
-
VelocityCharStream
public VelocityCharStream(InputStream dstream, int startline, int startcolumn)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-
-
VelocityCharStream
public VelocityCharStream(Reader dstream, int startline, int startcolumn, int buffersize)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-buffersize
-
-
VelocityCharStream
public VelocityCharStream(Reader dstream, int startline, int startcolumn)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-
-
-
Method Detail
-
BeginToken
public char BeginToken() throws IOException
Deprecated.- Specified by:
BeginToken
in interfaceCharStream
- Throws:
IOException
-
readChar
public char readChar() throws IOException
Deprecated.- Specified by:
readChar
in interfaceCharStream
- Throws:
IOException
-
getColumn
@Deprecated public int getColumn()
Deprecated.- Specified by:
getColumn
in interfaceCharStream
-
getLine
@Deprecated public int getLine()
Deprecated.- Specified by:
getLine
in interfaceCharStream
-
getEndColumn
public int getEndColumn()
Deprecated.- Specified by:
getEndColumn
in interfaceCharStream
-
getEndLine
public int getEndLine()
Deprecated.- Specified by:
getEndLine
in interfaceCharStream
-
getBeginColumn
public int getBeginColumn()
Deprecated.- Specified by:
getBeginColumn
in interfaceCharStream
-
getBeginLine
public int getBeginLine()
Deprecated.- Specified by:
getBeginLine
in interfaceCharStream
-
backup
public void backup(int amount)
Deprecated.- Specified by:
backup
in interfaceCharStream
-
reInit
public void reInit(Reader dstream, int startline, int startcolumn, int buffersize)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-buffersize
-
-
reInit
public void reInit(Reader dstream, int startline, int startcolumn)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-
-
reInit
public void reInit(InputStream dstream, int startline, int startcolumn, int buffersize)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-buffersize
-
-
reInit
public void reInit(InputStream dstream, int startline, int startcolumn)
Deprecated.- Parameters:
dstream
-startline
-startcolumn
-
-
GetImage
public String GetImage()
Deprecated.- Specified by:
GetImage
in interfaceCharStream
-
GetSuffix
public char[] GetSuffix(int len)
Deprecated.- Specified by:
GetSuffix
in interfaceCharStream
-
Done
public void Done()
Deprecated.- Specified by:
Done
in interfaceCharStream
-
adjustBeginLineColumn
public void adjustBeginLineColumn(int newLine, int newCol)
Deprecated.Method to adjust line and column numbers for the start of a token.- Parameters:
newLine
-newCol
-
-
-