public abstract class SubstitutionTextReader
extends java.io.Reader
| Modifier | Constructor and Description |
|---|---|
protected |
SubstitutionTextReader(java.io.Reader reader) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
protected abstract java.lang.String |
computeSubstitution(int c)
Implement to compute the substitution for the given character and
if necessary subsequent characters.
|
protected java.io.Reader |
getReader()
Returns the internal reader.
|
java.lang.String |
getString()
Gets the content as a String
|
protected boolean |
isSkippingWhitespace() |
protected int |
nextChar()
Returns the next character.
|
int |
read() |
int |
read(char[] cbuf,
int off,
int len) |
boolean |
ready() |
void |
reset() |
protected void |
setSkipWhitespace(boolean state) |
public java.lang.String getString()
throws java.io.IOException
java.io.IOExceptionprotected abstract java.lang.String computeSubstitution(int c)
throws java.io.IOException
nextChar
to read subsequent characters.java.io.IOExceptionprotected java.io.Reader getReader()
protected int nextChar()
throws java.io.IOException
java.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic boolean ready()
throws java.io.IOException
ready in class java.io.Readerjava.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.Readerjava.io.IOExceptionpublic void reset()
throws java.io.IOException
reset in class java.io.Readerjava.io.IOExceptionprotected final void setSkipWhitespace(boolean state)
protected final boolean isSkippingWhitespace()