com.arsdigita.search.converter
Class TextConverter
java.lang.Object
com.arsdigita.search.converter.BaseConverter
com.arsdigita.search.converter.TextConverter
- All Implemented Interfaces:
- Converter
- public class TextConverter
- extends BaseConverter
this class exists to ensure that text attachments are also indexed.
Method Summary |
String |
convertDocument(byte[] document)
This takes in a document represented as a byte[] and returns
a text representation of that document. |
String |
convertDocument(InputStream stream)
This takes in a document represented as an InputStream and returns
a text representation of that document. |
protected String[] |
getFileExtensions()
Returns a string array representing all of the files types
used by the given converter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TextConverter
public TextConverter()
getFileExtensions
protected String[] getFileExtensions()
- Returns a string array representing all of the files types
used by the given converter
- Specified by:
getFileExtensions
in class BaseConverter
convertDocument
public String convertDocument(InputStream stream)
throws ConversionException
- This takes in a document represented as an InputStream and returns
a text representation of that document.
- Throws:
ConversionException
convertDocument
public String convertDocument(byte[] document)
- This takes in a document represented as a byte[] and returns
a text representation of that document.
- Specified by:
convertDocument
in interface Converter
- Overrides:
convertDocument
in class BaseConverter
Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC