OpenOffice.org
XMerge API

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

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

public final class DocumentDeserializerImpl
extends java.lang.Object
implements DocumentDeserializer, OfficeConstants

Pocket Word implementation of DocumentDeserializer for the PluginFactoryImpl.

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

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
DocumentDeserializerImpl(ConvertData cd)
          Initialises a new DocumentDeserializerImpl using the supplied ConvertData.
 
Method Summary
 Document deserialize()
          Convert the data passed into the DocumentDeserializer constructor into the OpenOffice Writer Document format.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentDeserializerImpl

public DocumentDeserializerImpl(ConvertData cd)
Initialises a new DocumentDeserializerImpl using the supplied ConvertData.

The Document objects in the ConvertData should be PocketWordDocument objects.

Parameters:
cd - ConvertData containing a PocketWordDocument for conversion.
Method Detail

deserialize

public Document deserialize()
                     throws java.io.IOException,
                            ConvertException

Convert the data passed into the DocumentDeserializer constructor into the OpenOffice Writer Document 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:
deserialize in interface DocumentDeserializer
Returns:
The resulting Document object from conversion.
Throws:
ConvertException - If any Convert error occurs.
java.io.IOException - If any I/O error occurs.

OpenOffice.org
XMerge API

Copyright © 2002 OpenOffice.org