public class StreamTool
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamTool.DelimeterNotFoundException |
Constructor and Description |
---|
StreamTool()
Creates a new instance of StreamTool
|
Modifier and Type | Method and Description |
---|---|
static byte[] |
advanceTo(java.io.InputStream in,
byte[] delim) |
static void |
formatHeader(org.w3c.dom.Document document,
java.io.Writer writer) |
static void |
readStream(java.nio.channels.ReadableByteChannel stream,
StreamHandler handler) |
static java.nio.ByteBuffer |
readXML(java.nio.ByteBuffer input) |
static byte[] |
readXML(java.io.PushbackInputStream in)
Read off XML data from the InputStream up to the termination of the XML.
|
public static byte[] advanceTo(java.io.InputStream in, byte[] delim) throws java.io.IOException, StreamTool.DelimeterNotFoundException
java.io.IOException
StreamTool.DelimeterNotFoundException
public static byte[] readXML(java.io.PushbackInputStream in) throws java.io.IOException
java.io.IOException
public static java.nio.ByteBuffer readXML(java.nio.ByteBuffer input) throws java.io.IOException
java.io.IOException
public static void readStream(java.nio.channels.ReadableByteChannel stream, StreamHandler handler) throws StreamException
StreamException
public static void formatHeader(org.w3c.dom.Document document, java.io.Writer writer) throws StreamException
StreamException