public class XBTree extends java.lang.Object implements UBStreamable
| Constructor and Description |
|---|
XBTree()
Creates a new instance of XBTree
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
XBTreeNode |
findNodeByIndex(long index) |
int |
fromStreamUB(java.io.InputStream stream)
Method for reading values in UB Encoding from standard data stream.
|
XBTreeNode |
getRootBlock() |
XBTreeNode |
newNodeInstance(XBTreeNode parent)
TODO: This is stub, because I'm to lazy to think about proper solution
|
void |
setRootBlock(XBTreeNode rootNode) |
int |
sizeUB()
Method for reading size of data which would be saved in data stream.
|
int |
toStreamUB(java.io.OutputStream stream)
Method for writting values in UB Encoding to standard data stream.
|
public void clear()
public int toStreamUB(java.io.OutputStream stream)
throws java.io.IOException
UBStreamabletoStreamUB in interface UBStreamablestream - Stream to writejava.io.IOExceptionpublic int fromStreamUB(java.io.InputStream stream)
throws java.io.IOException,
XBProcessingException
UBStreamablefromStreamUB in interface UBStreamablestream - Stream to readjava.io.IOExceptionXBProcessingExceptionpublic int sizeUB()
UBStreamablesizeUB in interface UBStreamablepublic XBTreeNode getRootBlock()
public void setRootBlock(XBTreeNode rootNode)
public XBTreeNode findNodeByIndex(long index)
public XBTreeNode newNodeInstance(XBTreeNode parent)