Package com.rtfparserkit.converter.text
Class StreamTextConverter
- java.lang.Object
-
- com.rtfparserkit.parser.RtfListenerAdaptor
-
- com.rtfparserkit.converter.text.AbstractTextConverter
-
- com.rtfparserkit.converter.text.StreamTextConverter
-
- All Implemented Interfaces:
IRtfListener
public class StreamTextConverter extends AbstractTextConverter
This class implements a trivial RTF to text converter. The extracted text is written to the OutputStream as it is extracted.
-
-
Constructor Summary
Constructors Constructor Description StreamTextConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidconvert(IRtfSource source, java.io.OutputStream os, java.lang.String outputCharsetName)voidprocessExtractedText(java.lang.String text)This method is called to process the test we've extracted from the RTF file.-
Methods inherited from class com.rtfparserkit.converter.text.AbstractTextConverter
convert, processCommand, processGroupEnd, processGroupStart, processString
-
Methods inherited from class com.rtfparserkit.parser.RtfListenerAdaptor
processBinaryBytes, processCharacterBytes, processDocumentEnd, processDocumentStart
-
-
-
-
Method Detail
-
convert
public void convert(IRtfSource source, java.io.OutputStream os, java.lang.String outputCharsetName) throws java.io.IOException
- Throws:
java.io.IOException
-
processExtractedText
public void processExtractedText(java.lang.String text)
Description copied from class:AbstractTextConverterThis method is called to process the test we've extracted from the RTF file.- Specified by:
processExtractedTextin classAbstractTextConverter
-
-