org.semanticdesktop.aperture.extractor.corel.util
Class WPFilterInputStream
java.lang.Object
java.io.InputStream
java.io.FilterInputStream
org.semanticdesktop.aperture.extractor.corel.util.WPFilterInputStream
- All Implemented Interfaces:
- Closeable
public class WPFilterInputStream
- extends FilterInputStream
A FilterInputStream that processes bytes that have a special meaning in WordPerfect documents. Processed
characters are: 0x80 (space character in WP 6), 0xA9 (hyphen in WP 6) and
0xAC (word break indicator).
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.
Method Summary |
int |
read()
Converts all characters to 0 except for the readable ASCII-characters and characters from special byte
sequences. |
int |
read(byte[] byteArray,
int off,
int len)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
WPFilterInputStream
public WPFilterInputStream(InputStream in)
read
public int read()
throws IOException
- Converts all characters to 0 except for the readable ASCII-characters and characters from special byte
sequences.
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
read
public int read(byte[] byteArray,
int off,
int len)
throws IOException
- Overrides:
read
in class FilterInputStream
- Throws:
IOException
Copyright © 2010 Aperture Development Team. All Rights Reserved.