public abstract class AbstractStructuredObject extends AbstractAFPObject
AbstractAFPObject.Category, AbstractAFPObject.Type
LOG, SF_CLASS, SF_HEADER_LENGTH
Modifier | Constructor and Description |
---|---|
protected |
AbstractStructuredObject()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
protected void |
writeContent(OutputStream os)
Helper method to write the contents of the Object.
|
protected void |
writeEnd(OutputStream os)
Helper method to write the end of the Object.
|
protected void |
writeStart(OutputStream os)
Helper method to write the start of the Object.
|
void |
writeToStream(OutputStream os)
DataStream objects must implement the writeToStream()
method to write its data to the given OutputStream
|
copySF, copySF, truncate, writeChunksToStream, writeObjects
protected AbstractStructuredObject()
protected void writeStart(OutputStream os) throws IOException
os
- The stream to write toIOException
- throws an I/O exception if one occurredprotected void writeEnd(OutputStream os) throws IOException
os
- The stream to write toIOException
- an I/O exception if one occurredprotected void writeContent(OutputStream os) throws IOException
os
- The stream to write toIOException
- throws an I/O exception if one occurredpublic void writeToStream(OutputStream os) throws IOException
os
- the outputsteam streamIOException
- an I/O exception of some sort has occurred.Copyright © 2025 Apache Software Foundation. All rights reserved.