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