public class StreamTool
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
StreamTool.DelimeterNotFoundException |
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 java.util.Map<java.lang.String,java.lang.Object> |
processPropertiesElement(org.w3c.dom.Element element) |
static org.w3c.dom.Element |
processPropertiesMap(org.w3c.dom.Document document,
java.util.Map properties) |
static void |
readStream(java.nio.channels.ReadableByteChannel stream,
StreamHandler handler) |
static java.nio.ByteBuffer |
readXML(java.nio.ByteBuffer input)
return a ByteBuffer containing just the next xml portion of the stream.
|
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
input
- 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
public static java.util.Map<java.lang.String,java.lang.Object> processPropertiesElement(org.w3c.dom.Element element) throws StreamException
StreamException
public static org.w3c.dom.Element processPropertiesMap(org.w3c.dom.Document document, java.util.Map properties)