net.sourceforge.sconman.handlers
Class TaggedTextHandler
java.lang.Object
net.sourceforge.sconman.handlers.NullHandler
net.sourceforge.sconman.handlers.TaggedTextHandler
- All Implemented Interfaces:
- IContentTypeHandler
public class TaggedTextHandler
- extends NullHandler
Handles tagged text files, as XML or HTML, removing all the tags that
represent structure or format information that is not relevant to
indexation
- Author:
- mballesteros
Method Summary |
java.io.Reader |
getTextReader(Content content)
Implement this method to return a reader that provides the text associated
to the content |
void |
writeText(java.io.InputStream is,
java.io.Writer out)
Transfer all non-tagged text to the output writter |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TaggedTextHandler
public TaggedTextHandler()
getTextReader
public java.io.Reader getTextReader(Content content)
throws java.io.IOException
- Description copied from interface:
IContentTypeHandler
- Implement this method to return a reader that provides the text associated
to the content
- Specified by:
getTextReader
in interface IContentTypeHandler
- Overrides:
getTextReader
in class NullHandler
- Parameters:
content
- The content
- Returns:
- A filtered input stream
- Throws:
java.io.IOException
- If there's an IO problem
writeText
public void writeText(java.io.InputStream is,
java.io.Writer out)
throws java.io.IOException
- Transfer all non-tagged text to the output writter
- Specified by:
writeText
in interface IContentTypeHandler
- Overrides:
writeText
in class NullHandler
- Throws:
java.io.IOException
- See Also:
IContentTypeHandler.writeText(java.io.InputStream, java.io.Writer)
Copyright null null. All Rights Reserved.