OpenOffice.org
XMerge API

org.openoffice.xmerge.converter.xml.sxw.pocketword
Class DocumentSerializerImpl

java.lang.Object
  |
  +--org.openoffice.xmerge.converter.xml.sxw.pocketword.DocumentSerializerImpl
All Implemented Interfaces:
DocumentSerializer, OfficeConstants

public final class DocumentSerializerImpl
extends java.lang.Object
implements DocumentSerializer, OfficeConstants

Pocket Word implementation of DocumentDeserializer for use by PluginFactoryImpl.

This converts an OpenOffice Writer XML files to a Pocket Word file<.

Version:
1.1

Fields inherited from interface org.openoffice.xmerge.converter.xml.OfficeConstants
ATTRIBUTE_FO_FONT_FAMILY, ATTRIBUTE_OFFICE_CLASS, ATTRIBUTE_SPACE_COUNT, ATTRIBUTE_STYLE_FONT_PITCH, ATTRIBUTE_STYLE_NAME, ATTRIBUTE_TABLE_BOOLEAN_VALUE, ATTRIBUTE_TABLE_CURRENCY, ATTRIBUTE_TABLE_DATE_VALUE, ATTRIBUTE_TABLE_FORMULA, ATTRIBUTE_TABLE_NAME, ATTRIBUTE_TABLE_NUM_COLUMNS_REPEATED, ATTRIBUTE_TABLE_NUM_ROWS_REPEATED, ATTRIBUTE_TABLE_STRING_VALUE, ATTRIBUTE_TABLE_STYLE_NAME, ATTRIBUTE_TABLE_TIME_VALUE, ATTRIBUTE_TABLE_VALUE, ATTRIBUTE_TABLE_VALUE_TYPE, ATTRIBUTE_TEXT_STYLE_NAME, CELLTYPE_BOOLEAN, CELLTYPE_CURRENCY, CELLTYPE_DATE, CELLTYPE_FLOAT, CELLTYPE_PERCENT, CELLTYPE_STRING, CELLTYPE_TIME, SXC_FILE_EXTENSION, SXC_TYPE, SXW_FILE_EXTENSION, SXW_TYPE, TAG_BOOKMARK, TAG_BOOKMARK_START, TAG_HEADING, TAG_HYPERLINK, TAG_LINE_BREAK, TAG_LIST_HEADER, TAG_LIST_ITEM, TAG_OFFICE_AUTOMATIC_STYLES, TAG_OFFICE_BODY, TAG_OFFICE_DOCUMENT, TAG_OFFICE_DOCUMENT_CONTENT, TAG_OFFICE_DOCUMENT_STYLES, TAG_OFFICE_FONT_DECLS, TAG_OFFICE_MASTER_STYLES, TAG_OFFICE_STYLES, TAG_ORDERED_LIST, TAG_PARAGRAPH, TAG_SPACE, TAG_SPAN, TAG_STYLE_FONT_DECL, TAG_TAB_STOP, TAG_TABLE, TAG_TABLE_CELL, TAG_TABLE_COLUMN, TAG_TABLE_ROW, TAG_TABLE_SCENARIO, TAG_UNORDERED_LIST
 
Constructor Summary
DocumentSerializerImpl(Document doc)
          Initialises a new DocumentSerializerImpl using the.
supplied Document
 
Method Summary
 ConvertData serialize()
          Convert the data passed into the DocumentSerializerImpl constructor into Pocket Word format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentSerializerImpl

public DocumentSerializerImpl(Document doc)

Initialises a new DocumentSerializerImpl using the.
supplied Document

The supplied document should be an SxwDocument object.

Parameters:
document - The Document to convert.
Method Detail

serialize

public ConvertData serialize()
                      throws java.io.IOException,
                             ConvertException

Convert the data passed into the DocumentSerializerImpl constructor into Pocket Word format.

This method may or may not be thread-safe. It is expected that the user code does not call this method in more than one thread. And for most cases, this method is only done once.

Specified by:
serialize in interface DocumentSerializer
Returns:
ConvertData object to pass back the converted data.
Throws:
ConvertException - If any conversion error occurs.
java.io.IOException - If any I/O error occurs.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org