org.das2.stream.StreamTool


advanceTo

advanceTo( java.io.InputStream in, byte[][] delim ) → byte[]

Parameters

in - an InputStream
delim - a byte[]

Returns:

byte[][]

[search for examples] [view on GitHub] [view on old javadoc] [view source]


formatHeader

formatHeader( org.w3c.dom.Document document, java.io.Writer writer ) → void

Parameters

document - a Document
writer - a Writer

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


processPropertiesElement

processPropertiesElement( org.w3c.dom.Element element ) → Map

Parameters

element - an Element

Returns:

java.util.Map

[search for examples] [view on GitHub] [view on old javadoc] [view source]


processPropertiesMap

processPropertiesMap( org.w3c.dom.Document document, java.util.Map properties ) → Element

Parameters

document - a Document
properties - a java.util.Map

Returns:

org.w3c.dom.Element

[search for examples] [view on GitHub] [view on old javadoc] [view source]


readStream

readStream( java.nio.channels.ReadableByteChannel stream, org.das2.stream.StreamHandler handler ) → void

Parameters

stream - a ReadableByteChannel
handler - a StreamHandler

Returns:

void (returns nothing)

[search for examples] [view on GitHub] [view on old javadoc] [view source]


readXML

readXML( java.io.PushbackInputStream in ) → byte[]

Read off XML data from the InputStream up to the termination of the XML. XML data is returned in a byte array. The InputStream is left just following the XML terminator. Processing is done with as little interpretation as possible, so invalid XML will cause problems with little feedback about what's wrong.

Parameters

in - a PushbackInputStream

Returns:

byte[][]

[search for examples] [view on GitHub] [view on old javadoc] [view source]

readXML( java.nio.ByteBuffer input ) → ByteBuffer