public class Archive
extends java.lang.Object
Archive
class offers methods to serialize and de-serialize
the specific object. Currently, it used only for Annot
object.
It can be constructed by the following way.
Example:
Archive archive = Archive.create();
Annot
Modifier and Type | Method and Description |
---|---|
static Archive |
create()
Create an
Archive object for serializing and de-serializing. |
byte[] |
getData()
Get archived data from the
Archive object. |
long |
getHandle()
Get the
Archive object handle. |
void |
loadData(byte[] buffer)
Load data to the
Archive object. |
void |
release()
Release the
Archive handle. |
public long getHandle()
Archive
object handle.Archive
object.public static Archive create() throws PDFException
Archive
object for serializing and de-serializing.Archive
object.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public void release() throws PDFException
Archive
handle.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public byte[] getData() throws PDFException
Archive
object.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException
public void loadData(byte[] buffer) throws PDFException
Archive
object.buffer
- The data to be loaded to the Archive
object.PDFException
- For more exception information please see definitions
PDFException.ERRCODE_XXX
.PDFException