Package org.exbin.xbup.parser_tree
Class XBTree
- java.lang.Object
-
- org.exbin.xbup.parser_tree.XBTree
-
- All Implemented Interfaces:
java.io.Serializable
,org.exbin.xbup.core.ubnumber.UBStreamable
- Direct Known Subclasses:
XBTreeDocument
@ParametersAreNonnullByDefault public class XBTree extends java.lang.Object implements org.exbin.xbup.core.ubnumber.UBStreamable
XBUP level 0 object model parser tree.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description XBTree()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
XBTreeNode
findBlockByIndex(long index)
int
fromStreamUB(java.io.InputStream stream)
XBTreeNode
getRoot()
int
getSizeUB()
XBTreeNode
newNodeInstance(XBTreeNode parent)
void
setRootBlock(XBTreeNode rootNode)
int
toStreamUB(java.io.OutputStream stream)
-
-
-
Method Detail
-
clear
public void clear()
-
toStreamUB
public int toStreamUB(java.io.OutputStream stream) throws java.io.IOException
- Specified by:
toStreamUB
in interfaceorg.exbin.xbup.core.ubnumber.UBStreamable
- Throws:
java.io.IOException
-
fromStreamUB
public int fromStreamUB(java.io.InputStream stream) throws java.io.IOException, org.exbin.xbup.core.parser.XBProcessingException
- Specified by:
fromStreamUB
in interfaceorg.exbin.xbup.core.ubnumber.UBStreamable
- Throws:
java.io.IOException
org.exbin.xbup.core.parser.XBProcessingException
-
getSizeUB
public int getSizeUB()
- Specified by:
getSizeUB
in interfaceorg.exbin.xbup.core.ubnumber.UBStreamable
-
findBlockByIndex
@Nullable public XBTreeNode findBlockByIndex(long index)
-
newNodeInstance
@Nonnull public XBTreeNode newNodeInstance(@Nullable XBTreeNode parent)
-
getRoot
@Nullable public XBTreeNode getRoot()
-
setRootBlock
public void setRootBlock(@Nullable XBTreeNode rootNode)
-
-