org.openoffice.da.comp.w2lcommon.filter

Class ExportFilterBase

Implemented Interfaces:
XDocumentHandler, XExportFilter, XServiceInfo, XServiceName, XTypeProvider
Known Direct Subclasses:
W2LExportFilter, W2XExportFilter

public abstract class ExportFilterBase
extends java.lang.Object
implements XExportFilter, XServiceName, XServiceInfo, XDocumentHandler, XTypeProvider

This class provides an abstract uno component which implements an XExportFilter. The filter is actually generic and only then constructor and 3 strings needs to changed by the subclass.

Field Summary

static String
__displayName
Filter name to include in error messages
static String
__implementationName
Implementation name for the component
static String
__serviceName
Service name for the component
protected static XMultiServiceFactory
xMSF

Constructor Summary

ExportFilterBase(XComponentContext xComponentContext1)
We need to get the Service Manager from the Component context to instantiate certain services, hence this constructor.

Method Summary

void
characters(String str)
void
convert(XInputStream xml, XOutputStream exportStream)
void
endDocument()
void
endElement(String str)
boolean
exporter(com.sun.star.beans.PropertyValue[] aSourceData, java.lang.String[] msUserData)
byte[]
getImplementationId()
String
getImplementationName()
String
getServiceName()
String[]
getSupportedServiceNames()
Type[]
getTypes()
void
ignorableWhitespace(String str)
String
needsMask(String origString)
void
processingInstruction(String aTarget, String aData)
String
replace(String origString, String origChar, String replaceChar)
void
setDocumentLocator(com.sun.star.xml.sax.XLocator xLocator)
void
startDocument()
void
startElement(String str, com.sun.star.xml.sax.XAttributeList xattribs)
boolean
supportsService(String stringServiceName)

Field Details

__displayName

public static final String __displayName
Filter name to include in error messages

__implementationName

public static final String __implementationName
Implementation name for the component

__serviceName

public static final String __serviceName
Service name for the component

xMSF

protected static XMultiServiceFactory xMSF

Constructor Details

ExportFilterBase

public ExportFilterBase(XComponentContext xComponentContext1)
We need to get the Service Manager from the Component context to instantiate certain services, hence this constructor. The subclass must override this to set xMSF properly from the reigstration class

Method Details

characters

public void characters(String str)

convert

public void convert(XInputStream xml,
                    XOutputStream exportStream)
            throws com.sun.star.uno.RuntimeException,
                   IOException

endDocument

public void endDocument()
            throws com.sun.star.uno.RuntimeException

endElement

public void endElement(String str)

exporter

public boolean exporter(com.sun.star.beans.PropertyValue[] aSourceData,
                        java.lang.String[] msUserData)
            throws com.sun.star.uno.RuntimeException

getImplementationId

public byte[] getImplementationId()

getImplementationName

public String getImplementationName()

getServiceName

public String getServiceName()

getSupportedServiceNames

public String[] getSupportedServiceNames()

getTypes

public Type[] getTypes()

ignorableWhitespace

public void ignorableWhitespace(String str)

needsMask

public String needsMask(String origString)

processingInstruction

public void processingInstruction(String aTarget,
                                  String aData)

replace

public String replace(String origString,
                      String origChar,
                      String replaceChar)

setDocumentLocator

public void setDocumentLocator(com.sun.star.xml.sax.XLocator xLocator)

startDocument

public void startDocument()

startElement

public void startElement(String str,
                         com.sun.star.xml.sax.XAttributeList xattribs)

supportsService

public boolean supportsService(String stringServiceName)