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, postProcessLine
public String extract(InputStream stream) throws IOException
extract
in class StringExtractor
stream
- 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)
StringExtractor
isTextCharacter
in class StringExtractor
protected boolean isStartLine(String lineLowerCase)
StringExtractor
isStartLine
in class StringExtractor
protected boolean isValidLine(String lineLowerCase)
StringExtractor
isValidLine
in class StringExtractor
Copyright © 2008-2014 Logical Objects. All Rights Reserved.