|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.openoffice.xmerge.converter.xml.sxw.aportisdoc.DocumentSerializerImpl
AportisDoc implementation of
org.openoffice.xmerge.DocumentSerializer
for the PluginFactoryImpl
.
The serialize
method traverses the DOM
document from the given Document
object. It uses a
DocEncoder
object for the actual conversion of
contents to the AportisDoc format.
Field Summary | |
static short |
COMPRESSED
Constant for compressed version. |
static int |
CREATOR_ID
Creator id. |
static java.lang.String |
ENCODING
Constant for encoding scheme. |
static char |
EOL_CHAR
Constant for EOL character. |
static char |
SPACE_CHAR
Constant for SPACE character. |
static int |
SPARE
Constant used for spare fields. |
static char |
TAB_CHAR
Constant for TAB character. |
static short |
TEXT_RECORD_SIZE
AportisDoc record size. |
static int |
TYPE_ID
Type id. |
static short |
UNCOMPRESSED
Constant for uncompressed version. |
Constructor Summary | |
DocumentSerializerImpl(Document doc)
Constructor. |
Method Summary | |
ConvertData |
serialize()
Method to convert a Document into a PDB. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final short COMPRESSED
public static final int CREATOR_ID
public static final java.lang.String ENCODING
public static final char EOL_CHAR
public static final char SPACE_CHAR
public static final int SPARE
public static final char TAB_CHAR
public static final short TEXT_RECORD_SIZE
public static final int TYPE_ID
public static final short UNCOMPRESSED
Constructor Detail |
public DocumentSerializerImpl(Document doc)
doc
- A SXW Document
to be converted.Method Detail |
public ConvertData serialize() throws ConvertException, java.io.IOException
Method to convert a Document
into a PDB.
It passes back the converted data as a ConvertData
object.
This method is not thread safe for performance reasons. This method should not be called from within two threads. It would be best to call this method only once per object instance.
serialize
in interface DocumentSerializer
ConvertData
object containing the output.ConvertException
- If any conversion error occurs.java.io.IOException
- If any I/O error occurs.
|
OpenOffice.org XMerge API |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |