LibreOffice Module xmerge (master)  1
Public Member Functions | Private Member Functions | Static Private Attributes | List of all members
org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl Class Reference

Xslt implementation of the. More...

Inheritance diagram for org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl:
[legend]
Collaboration diagram for org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl:
[legend]

Public Member Functions

 PluginFactoryImpl (ConverterInfo ci)
 
DocumentSerializer createDocumentSerializer (Document doc)
 Returns an instance of. More...
 
DocumentDeserializer createDocumentDeserializer (ConvertData cd)
 Returns an instance of DocumentDeserializerImpl, which is an implementation of the DocumentDeserializer interface. More...
 
org.openoffice.xmerge.Document createDeviceDocument (String str, java.io.InputStream inputStream) throws java.io.IOException
 
Document createOfficeDocument (String name, InputStream is) throws IOException
 
Document createOfficeDocument (String name, InputStream is, boolean isZip) throws IOException
 
DocumentMerger createDocumentMerger (Document doc)
 Returns an instance of. More...
 
- Public Member Functions inherited from org.openoffice.xmerge.PluginFactory
 PluginFactory (ConverterInfo ci)
 Constructor that caches the. More...
 
ConverterInfo getConverterInfo ()
 Returns the. More...
 
abstract Document createOfficeDocument (String name, InputStream is) throws IOException
 Create a. More...
 
abstract Document createOfficeDocument (String name, InputStream is, boolean isZip) throws IOException
 Create a. More...
 
abstract Document createDeviceDocument (String name, InputStream is) throws IOException
 Create a. More...
 

Private Member Functions

String getDeviceFileExtension ()
 Returns a. More...
 

Static Private Attributes

static final ConverterCapabilities converterCap
 ConverterCapabilities object for this type of conversion. More...
 

Detailed Description

Xslt implementation of the.

.

This encapsulates conversion of StarWriter XML format to and from a supported format.

The superclass produces a particular Document object, i.e. xwDocument that the converters in this class work with. Thus, this class only implements the methods that produces the converters, i.e. DocumentSerializer and DocumentDeserializer

Definition at line 53 of file PluginFactoryImpl.java.

Constructor & Destructor Documentation

org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.PluginFactoryImpl ( ConverterInfo  ci)
inline

Definition at line 57 of file PluginFactoryImpl.java.

Member Function Documentation

org.openoffice.xmerge.Document org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDeviceDocument ( String  str,
java.io.InputStream  inputStream 
) throws java.io.IOException
inline
DocumentDeserializer org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDocumentDeserializer ( ConvertData  cd)
inline

Returns an instance of DocumentDeserializerImpl, which is an implementation of the DocumentDeserializer interface.

Parameters
cd

Implements org.openoffice.xmerge.DocumentDeserializerFactory.

Definition at line 86 of file PluginFactoryImpl.java.

DocumentMerger org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDocumentMerger ( Document  doc)
inline

Returns an instance of.

DocumentMergerImpl

, which is an implementation of the

DocumentMerger

interface.

Parameters
doc

Implements org.openoffice.xmerge.DocumentMergerFactory.

Definition at line 169 of file PluginFactoryImpl.java.

References org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.converterCap.

DocumentSerializer org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDocumentSerializer ( Document  doc)
inline

Returns an instance of.

DocumentSerializerImpl

, which is an implementation of the

DocumentSerializer

interface.

Parameters
doc

Implements org.openoffice.xmerge.DocumentSerializerFactory.

Definition at line 73 of file PluginFactoryImpl.java.

Document org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createOfficeDocument ( String  name,
InputStream  is 
) throws IOException
inline

Definition at line 100 of file PluginFactoryImpl.java.

References name.

Document org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createOfficeDocument ( String  name,
InputStream  is,
boolean  isZip 
) throws IOException
inline

Definition at line 110 of file PluginFactoryImpl.java.

References name.

String org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.getDeviceFileExtension ( )
inlineprivate

Returns a.

containing the file extension of a

.

This method uses a properties file to determine a mapping from the device mime in the

ConverterInfo

to a particular file extension. If a mapping is not specified, the default is ".txt".

Returns
The file extension of a .

Definition at line 129 of file PluginFactoryImpl.java.

References Exception, getClass(), org.openoffice.xmerge.PluginFactory.getConverterInfo(), org.openoffice.xmerge.util.registry.ConverterInfo.getDeviceMime(), org.openoffice.xmerge.merger.Iterator.next(), Properties, props, and String.

Referenced by org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDeviceDocument().

Member Data Documentation

final ConverterCapabilities org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.converterCap
staticprivate
Initial value:
=
new ConverterCapabilitiesImpl()

ConverterCapabilities object for this type of conversion.

Definition at line 62 of file PluginFactoryImpl.java.

Referenced by org.openoffice.xmerge.converter.xml.xslt.PluginFactoryImpl.createDocumentMerger().


The documentation for this class was generated from the following file: