Class XBTDocumentToXBDocument

  • All Implemented Interfaces:
    org.exbin.xbup.core.block.XBDocument, org.exbin.xbup.core.block.XBEditableDocument

    public class XBTDocumentToXBDocument
    extends java.lang.Object
    implements org.exbin.xbup.core.block.XBEditableDocument
    Conversion from level 1 document to level 0 document
    • Constructor Detail

      • XBTDocumentToXBDocument

        public XBTDocumentToXBDocument​(org.exbin.xbup.core.block.XBTDocument document)
    • Method Detail

      • getRootBlock

        @Nonnull
        public java.util.Optional<org.exbin.xbup.core.block.XBBlock> getRootBlock()
        Specified by:
        getRootBlock in interface org.exbin.xbup.core.block.XBDocument
      • getTailData

        @Nonnull
        public java.util.Optional<java.io.InputStream> getTailData()
        Specified by:
        getTailData in interface org.exbin.xbup.core.block.XBDocument
      • getTailDataSize

        public long getTailDataSize()
        Specified by:
        getTailDataSize in interface org.exbin.xbup.core.block.XBDocument
      • setRootBlock

        public void setRootBlock​(org.exbin.xbup.core.block.XBBlock block)
        Specified by:
        setRootBlock in interface org.exbin.xbup.core.block.XBEditableDocument
      • setTailData

        public void setTailData​(java.io.InputStream source)
                         throws java.io.IOException
        Specified by:
        setTailData in interface org.exbin.xbup.core.block.XBEditableDocument
        Throws:
        java.io.IOException
      • clear

        public void clear()
        Specified by:
        clear in interface org.exbin.xbup.core.block.XBEditableDocument
      • getDocumentSize

        public long getDocumentSize()
        Specified by:
        getDocumentSize in interface org.exbin.xbup.core.block.XBDocument