XMLStreamNormalizingReaderpublic class StreamNormalizingReader extends NormalizingReader
| Modifier and Type | Class | Description |
|---|---|---|
protected static class |
StreamNormalizingReader.ASCIIDecoderFactory |
To create an ASCIIDecoder.
|
protected static interface |
StreamNormalizingReader.CharDecoderFactory |
Represents a CharDecoder factory.
|
protected static class |
StreamNormalizingReader.ISO_8859_1DecoderFactory |
To create an ISO_8859_1Decoder.
|
protected static class |
StreamNormalizingReader.UTF16DecoderFactory |
To create a UTF16Decoder.
|
protected static class |
StreamNormalizingReader.UTF8DecoderFactory |
To create a UTF8Decoder.
|
| Modifier and Type | Field | Description |
|---|---|---|
protected CharDecoder |
charDecoder |
The char decoder.
|
protected static java.util.Map |
charDecoderFactories |
The CharDecoder factories map.
|
protected int |
column |
The current column in the stream.
|
protected int |
line |
The current line in the stream.
|
protected int |
nextChar |
The next char.
|
| Modifier | Constructor | Description |
|---|---|---|
protected |
StreamNormalizingReader() |
This constructor is intended for use by subclasses.
|
|
StreamNormalizingReader(java.io.InputStream is) |
Creates a new NormalizingReader.
|
|
StreamNormalizingReader(java.io.InputStream is,
java.lang.String enc) |
Creates a new NormalizingReader.
|
|
StreamNormalizingReader(java.io.Reader r) |
Creates a new NormalizingReader.
|
| Modifier and Type | Method | Description |
|---|---|---|
void |
close() |
Close the stream.
|
protected CharDecoder |
createCharDecoder(java.io.InputStream is,
java.lang.String enc) |
Creates the CharDecoder mapped with the given encoding name.
|
int |
getColumn() |
Returns the current column in the stream.
|
int |
getLine() |
Returns the current line in the stream.
|
int |
read() |
Read a single character.
|
readprotected CharDecoder charDecoder
protected int nextChar
protected int line
protected int column
protected static final java.util.Map charDecoderFactories
public StreamNormalizingReader(java.io.InputStream is)
throws java.io.IOException
is - The input stream to decode.java.io.IOExceptionpublic StreamNormalizingReader(java.io.InputStream is,
java.lang.String enc)
throws java.io.IOException
is - The input stream to decode.enc - The standard encoding name. A null encoding means
ISO-8859-1.java.io.IOExceptionpublic StreamNormalizingReader(java.io.Reader r)
throws java.io.IOException
r - The reader to wrap.java.io.IOExceptionprotected StreamNormalizingReader()
public int read()
throws java.io.IOException
read in class java.io.Readerjava.io.IOExceptionpublic int getLine()
getLine in class NormalizingReaderpublic int getColumn()
getColumn in class NormalizingReaderpublic void close()
throws java.io.IOException
close in class java.io.Readerjava.io.IOExceptionprotected CharDecoder createCharDecoder(java.io.InputStream is, java.lang.String enc) throws java.io.IOException
java.io.IOExceptionCopyright ? 2018 Apache Software Foundation. All Rights Reserved.