Class XBDocumentToXBTDocument

  • All Implemented Interfaces:
    org.exbin.xbup.core.block.XBTDocument, org.exbin.xbup.core.block.XBTEditableDocument

    @ParametersAreNonnullByDefault
    public class XBDocumentToXBTDocument
    extends java.lang.Object
    implements org.exbin.xbup.core.block.XBTEditableDocument
    Conversion from level 0 document to level 1 document
    • Constructor Summary

      Constructors 
      Constructor Description
      XBDocumentToXBTDocument​(org.exbin.xbup.core.block.XBDocument document)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      org.exbin.xbup.core.block.XBTBlock createNewBlock​(org.exbin.xbup.core.block.XBTBlock parent)  
      java.util.Optional<org.exbin.xbup.core.block.XBTBlock> findBlockByIndex​(long index)  
      long getDocumentSize()  
      java.util.Optional<org.exbin.xbup.core.block.XBTBlock> getRootBlock()  
      java.util.Optional<java.io.InputStream> getTailData()  
      long getTailDataSize()  
      void setRootBlock​(org.exbin.xbup.core.block.XBTBlock block)  
      void setTailData​(java.io.InputStream source)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • XBDocumentToXBTDocument

        public XBDocumentToXBTDocument​(org.exbin.xbup.core.block.XBDocument document)
    • Method Detail

      • getRootBlock

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

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

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

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

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

        @Nonnull
        public java.util.Optional<org.exbin.xbup.core.block.XBTBlock> findBlockByIndex​(long index)
        Specified by:
        findBlockByIndex in interface org.exbin.xbup.core.block.XBTEditableDocument
      • createNewBlock

        public org.exbin.xbup.core.block.XBTBlock createNewBlock​(org.exbin.xbup.core.block.XBTBlock parent)
        Specified by:
        createNewBlock in interface org.exbin.xbup.core.block.XBTEditableDocument
      • clear

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

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