public class StandardTokenReader
extends java.lang.Object
This is a framework internal class! Backward compatibility is not guaranteed.
Constructor and Description |
---|
StandardTokenReader(java.io.InputStream input)
Construct an instance that will read bytes from the specified byte stream,
and then convert them to tokens and delimiters.
|
StandardTokenReader(java.io.Reader input)
Construct an instance that will read tokens directly from the specified
character stream,
|
Modifier and Type | Method and Description |
---|---|
char |
getDelimiter()
Force a delimiter from the input stream.
|
java.lang.String |
getPrefixedToken() |
java.lang.String |
getToken()
Force next token from the input stream.
|
protected boolean |
isDelimiter(int ch)
Match the specified byte against delimiters defined in StandardBufferFormatter.
|
void |
matchDelimiter(char ch)
Force a next delimiter from the input stream and throw BufferFormatException
if it does not match the specified delimiter.
|
public StandardTokenReader(java.io.InputStream input)
public StandardTokenReader(java.io.Reader input)
public char getDelimiter() throws BufferFormatException, java.io.IOException
BufferFormatException
java.io.IOException
public java.lang.String getToken() throws BufferFormatException, java.io.IOException
BufferFormatException
java.io.IOException
public void matchDelimiter(char ch) throws BufferFormatException, java.io.IOException
BufferFormatException
java.io.IOException
public java.lang.String getPrefixedToken() throws java.io.IOException, BufferFormatException
java.io.IOException
BufferFormatException
protected boolean isDelimiter(int ch)