Class 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 Detail

      • XBTree

        public XBTree()
    • Method Detail

      • clear

        public void clear()
      • toStreamUB

        public int toStreamUB​(java.io.OutputStream stream)
                       throws java.io.IOException
        Specified by:
        toStreamUB in interface org.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 interface org.exbin.xbup.core.ubnumber.UBStreamable
        Throws:
        java.io.IOException
        org.exbin.xbup.core.parser.XBProcessingException
      • getSizeUB

        public int getSizeUB()
        Specified by:
        getSizeUB in interface org.exbin.xbup.core.ubnumber.UBStreamable
      • findBlockByIndex

        @Nullable
        public XBTreeNode findBlockByIndex​(long index)
      • setRootBlock

        public void setRootBlock​(@Nullable
                                 XBTreeNode rootNode)