Package org.exbin.xbup.parser_tree
Class XBDocumentToXBTDocument
- java.lang.Object
-
- org.exbin.xbup.parser_tree.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)
-
-
-
Method Detail
-
getRootBlock
@Nonnull public java.util.Optional<org.exbin.xbup.core.block.XBTBlock> getRootBlock()
- Specified by:
getRootBlock
in interfaceorg.exbin.xbup.core.block.XBTDocument
-
getTailData
@Nonnull public java.util.Optional<java.io.InputStream> getTailData()
- Specified by:
getTailData
in interfaceorg.exbin.xbup.core.block.XBTDocument
-
getTailDataSize
public long getTailDataSize()
- Specified by:
getTailDataSize
in interfaceorg.exbin.xbup.core.block.XBTDocument
-
setRootBlock
public void setRootBlock(org.exbin.xbup.core.block.XBTBlock block)
- Specified by:
setRootBlock
in interfaceorg.exbin.xbup.core.block.XBTEditableDocument
-
setTailData
public void setTailData(java.io.InputStream source) throws java.io.IOException
- Specified by:
setTailData
in interfaceorg.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 interfaceorg.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 interfaceorg.exbin.xbup.core.block.XBTEditableDocument
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.exbin.xbup.core.block.XBTEditableDocument
-
getDocumentSize
public long getDocumentSize()
- Specified by:
getDocumentSize
in interfaceorg.exbin.xbup.core.block.XBTDocument
-
-