public abstract class XBTInputStream extends java.lang.Object implements java.io.Closeable, XBTEventProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
XBTInputStream.XBTEventIStream |
| Constructor and Description |
|---|
XBTInputStream() |
| Modifier and Type | Method and Description |
|---|---|
void |
attachXBTEventListener(XBTEventListener eventListener)
Attach event listener.
|
int |
available() |
void |
close()
Close source and release locks
|
abstract XBTToken |
getXBT()
Get next item in stream
|
static XBTInputStream |
getXBTEventStream(XBTEventProvider provider) |
void |
reset()
Reset Source
|
void |
skip()
Skip single block
|
void |
toXBTEvents()
Process stream as stream of events
|
public static XBTInputStream getXBTEventStream(XBTEventProvider provider)
public void attachXBTEventListener(XBTEventListener eventListener)
attachXBTEventListener in interface XBTEventProviderpublic void toXBTEvents()
throws java.io.IOException,
XBProcessingException
java.io.IOExceptionXBProcessingExceptionpublic abstract XBTToken getXBT() throws XBProcessingException
XBProcessingExceptionpublic void reset()
throws java.io.IOException
java.io.IOExceptionpublic void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOExceptionpublic void skip()
throws XBProcessingException
XBProcessingExceptionpublic int available()
throws java.io.IOException
java.io.IOException