public class WPStringExtractor extends StringExtractor
This class is made available as a utility class as other file formats may also use WordPerfect's file structure, e.g. Corel Presentations 3.0 files.
COMMON_FONT_NAMES| Constructor and Description |
|---|
WPStringExtractor() |
| Modifier and Type | Method and Description |
|---|---|
String |
extract(InputStream stream)
Wraps the specified InputStream in a WPFilterInputStream and passes it to the super class.
|
protected boolean |
isStartLine(String lineLowerCase)
Determines whether the supplied line indicates the start of the textual contents.
|
protected boolean |
isTextCharacter(int charNumber)
Checks whether the supplied character is a text character.
|
protected boolean |
isValidLine(String lineLowerCase)
Determines whether the supplied line should be included in the end result.
|
isNormalWord, postProcessLinepublic String extract(InputStream stream) throws IOException
extract in class StringExtractorstream - The InputStream to read the bytes from. The stream will be fully consumed but not closed.IOException - When reading characters from the InputStream caused an IOException.protected boolean isTextCharacter(int charNumber)
StringExtractorisTextCharacter in class StringExtractorprotected boolean isStartLine(String lineLowerCase)
StringExtractorisStartLine in class StringExtractorprotected boolean isValidLine(String lineLowerCase)
StringExtractorisValidLine in class StringExtractorCopyright © 2008-2014 Logical Objects. All Rights Reserved.