lux.xml.tinybin
Class TinyBinary
java.lang.Object
lux.xml.tinybin.TinyBinary
public class TinyBinary
- extends Object
|
Constructor Summary |
TinyBinary(byte[] buf)
To read a TinyTree from a byte array in which characters are encoded as they are in
Java (ie 16-bit values for normal chars, 32-bit for those in the supplemental planes) |
TinyBinary(byte[] buf,
Charset charset)
To read a TinyTree from a byte array in which characters are encoded according to the
given Charset. |
TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree)
|
TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree,
Charset charset)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TinyBinary
public TinyBinary(byte[] buf)
- To read a TinyTree from a byte array in which characters are encoded as they are in
Java (ie 16-bit values for normal chars, 32-bit for those in the supplemental planes)
- Parameters:
buf - a byte array containing a binary-encoded tiny tree.
TinyBinary
public TinyBinary(byte[] buf,
Charset charset)
- To read a TinyTree from a byte array in which characters are encoded according to the
given Charset.
- Parameters:
buf - a byte array containing a binary-encoded tiny tree.charset - the charset that defines a mapping between characters (unicode code points)
and bytes.
TinyBinary
public TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree)
TinyBinary
public TinyBinary(net.sf.saxon.tree.tiny.TinyTree tree,
Charset charset)
getTinyDocument
public net.sf.saxon.tree.tiny.TinyDocumentImpl getTinyDocument(net.sf.saxon.Configuration config)
getByteBuffer
public ByteBuffer getByteBuffer()
- Returns:
- the internal storage buffer
getBytes
public byte[] getBytes()
- Returns:
- the byte array from the internal storage buffer. This will usually be larger
than required, and contains unused trailing bytes.
length
public int length()
Copyright © 2013. All Rights Reserved.