org.mycore.services.plugins
Class OpenOfficeBasePlugin

java.lang.Object
  extended by org.mycore.services.plugins.OpenOfficeBasePlugin
All Implemented Interfaces:
TextFilterPlugin
Direct Known Subclasses:
OoTextPlugin, OpenDocumentTextPlugin

abstract class OpenOfficeBasePlugin
extends Object
implements TextFilterPlugin

Author:
Thomas Scheffler (yagee) Need to insert some things here

Constructor Summary
OpenOfficeBasePlugin(String contentType)
           
 
Method Summary
(package private) abstract  String getDocumentName()
           
abstract  String getInfo()
          may contain some additional Information on the plugin
abstract  int getMajorNumber()
          should return the major version number
abstract  int getMinorNumber()
          should return the minor version number
abstract  String getName()
          should return a Name of the plugin
 HashSet getSupportedContentTypes()
          returns a list of all supported MCRFileContentTypes.
(package private) abstract  String getTextNameSpace()
           
(package private) static InputStream getXMLStream(InputStream inp)
           
 Reader transform(MCRFileContentType ct, InputStream input)
          onverts a given Inputstream to Textstream which should contain a textual representation of the source.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OpenOfficeBasePlugin

OpenOfficeBasePlugin(String contentType)
Method Detail

getName

public abstract String getName()
Description copied from interface: TextFilterPlugin
should return a Name of the plugin

Specified by:
getName in interface TextFilterPlugin
Returns:
Plugin name

getInfo

public abstract String getInfo()
Description copied from interface: TextFilterPlugin
may contain some additional Information on the plugin

Specified by:
getInfo in interface TextFilterPlugin
Returns:
further Informations on the plugin

getSupportedContentTypes

public HashSet getSupportedContentTypes()
Description copied from interface: TextFilterPlugin
returns a list of all supported MCRFileContentTypes. These file extensions must be delivered without the leading dot.

Specified by:
getSupportedContentTypes in interface TextFilterPlugin
Returns:
HashSet List of file extensions

transform

public Reader transform(MCRFileContentType ct,
                        InputStream input)
                 throws FilterPluginTransformException
Description copied from interface: TextFilterPlugin
onverts a given Inputstream to Textstream which should contain a textual representation of the source.

Specified by:
transform in interface TextFilterPlugin
input - File in foreign format
Returns:
Inputstream textual representation of input
Throws:
FilterPluginTransformException

getMajorNumber

public abstract int getMajorNumber()
Description copied from interface: TextFilterPlugin
should return the major version number

Specified by:
getMajorNumber in interface TextFilterPlugin
Returns:
major version number
See Also:
TextFilterPlugin.getMajorNumber()

getMinorNumber

public abstract int getMinorNumber()
Description copied from interface: TextFilterPlugin
should return the minor version number

Specified by:
getMinorNumber in interface TextFilterPlugin
Returns:
minor version number
See Also:
TextFilterPlugin.getMinorNumber()

getXMLStream

static InputStream getXMLStream(InputStream inp)
                         throws IOException
Throws:
IOException

getTextNameSpace

abstract String getTextNameSpace()

getDocumentName

abstract String getDocumentName()