Package org.exbin.xbup.parser_tree
Class XBTDocumentToXBDocument
- java.lang.Object
-
- org.exbin.xbup.parser_tree.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 Summary
Constructors Constructor Description XBTDocumentToXBDocument(org.exbin.xbup.core.block.XBTDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
long
getDocumentSize()
java.util.Optional<org.exbin.xbup.core.block.XBBlock>
getRootBlock()
java.util.Optional<java.io.InputStream>
getTailData()
long
getTailDataSize()
void
setRootBlock(org.exbin.xbup.core.block.XBBlock block)
void
setTailData(java.io.InputStream source)
-
-
-
Method Detail
-
getRootBlock
@Nonnull public java.util.Optional<org.exbin.xbup.core.block.XBBlock> getRootBlock()
- Specified by:
getRootBlock
in interfaceorg.exbin.xbup.core.block.XBDocument
-
getTailData
@Nonnull public java.util.Optional<java.io.InputStream> getTailData()
- Specified by:
getTailData
in interfaceorg.exbin.xbup.core.block.XBDocument
-
getTailDataSize
public long getTailDataSize()
- Specified by:
getTailDataSize
in interfaceorg.exbin.xbup.core.block.XBDocument
-
setRootBlock
public void setRootBlock(org.exbin.xbup.core.block.XBBlock block)
- Specified by:
setRootBlock
in interfaceorg.exbin.xbup.core.block.XBEditableDocument
-
setTailData
public void setTailData(java.io.InputStream source) throws java.io.IOException
- Specified by:
setTailData
in interfaceorg.exbin.xbup.core.block.XBEditableDocument
- Throws:
java.io.IOException
-
clear
public void clear()
- Specified by:
clear
in interfaceorg.exbin.xbup.core.block.XBEditableDocument
-
getDocumentSize
public long getDocumentSize()
- Specified by:
getDocumentSize
in interfaceorg.exbin.xbup.core.block.XBDocument
-
-