public class InputStreamWrapper
extends java.lang.Object
Constructor and Description |
---|
InputStreamWrapper() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close document input.
|
IInByteBuffer |
getBuffer()
Get input buffer.
|
java.lang.String |
getEncoding()
Get encoding for input document.
|
java.io.Reader |
getReader()
Get reader for wrapped input stream.
|
void |
reset()
Reset to initial state for reuse.
|
void |
setBuffer(IInByteBuffer buff)
Set the input buffer.
|
void |
setEncoding(java.lang.String enc)
Set encoding for stream.
|
public void setBuffer(IInByteBuffer buff)
buff
- public IInByteBuffer getBuffer()
null
if none setpublic void setEncoding(java.lang.String enc) throws java.io.IOException
enc
- character encoding used for input from stream
(null
if to be determined from XML input)java.io.IOException
- if unknown encoding, or encoding already setpublic java.io.Reader getReader() throws java.io.IOException
java.io.IOException
- if error reading from document or creating a reader
for the encoding foundpublic java.lang.String getEncoding()
getReader()
is called.public void close() throws java.io.IOException
java.io.IOException
- on error closing documentpublic void reset()