public static class URIConverter.ReadableInputStream extends java.io.InputStream implements URIConverter.Readable
Modifier and Type | Class and Description |
---|---|
protected class |
URIConverter.ReadableInputStream.Buffer |
Modifier and Type | Field and Description |
---|---|
protected URIConverter.ReadableInputStream.Buffer |
buffer |
protected java.lang.String |
encoding |
protected java.io.Reader |
reader |
Constructor and Description |
---|
URIConverter.ReadableInputStream(java.io.Reader xmlReader) |
URIConverter.ReadableInputStream(java.io.Reader reader,
java.lang.String encoding) |
URIConverter.ReadableInputStream(java.lang.String xmlString) |
URIConverter.ReadableInputStream(java.lang.String string,
java.lang.String encoding) |
Modifier and Type | Method and Description |
---|---|
java.io.Reader |
asReader()
Returns a reader that provides access to the same underlying data as the input stream itself.
|
void |
close() |
java.lang.String |
getEncoding()
Returns the encoding used to convert the reader's characters to bytes.
|
static java.lang.String |
getEncoding(java.io.Reader xmlReader) |
static java.lang.String |
getEncoding(java.lang.String xmlString) |
int |
read() |
void |
reset() |
protected java.lang.String encoding
protected java.io.Reader reader
protected URIConverter.ReadableInputStream.Buffer buffer
public URIConverter.ReadableInputStream(java.io.Reader reader, java.lang.String encoding)
public URIConverter.ReadableInputStream(java.io.Reader xmlReader)
public URIConverter.ReadableInputStream(java.lang.String string, java.lang.String encoding)
public URIConverter.ReadableInputStream(java.lang.String xmlString)
public static java.lang.String getEncoding(java.lang.String xmlString)
public static java.lang.String getEncoding(java.io.Reader xmlReader)
public int read() throws java.io.IOException
read
in class java.io.InputStream
java.io.IOException
public java.io.Reader asReader()
URIConverter.Readable
asReader
in interface URIConverter.Readable
public java.lang.String getEncoding()
URIConverter.Readable
getEncoding
in interface URIConverter.Readable
public void close() throws java.io.IOException
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream
java.io.IOException
public void reset() throws java.io.IOException
reset
in class java.io.InputStream
java.io.IOException