mark.core.text
Class AsciiReader
java.lang.Object
|
+--java.io.Reader
|
+--mark.core.text.AsciiReader
- public class AsciiReader
- extends java.io.Reader
A java.io.Reader that converts each character outside (>127) of the Ascii
character set into a space (0x20).
| Fields inherited from class java.io.Reader |
lock |
|
Constructor Summary |
AsciiReader(java.io.Reader source)
Initializes the AsciiReader. |
|
Method Summary |
void |
close()
Overrides java.io.Reader.close (). |
int |
read(char[] cbuf,
int off,
int len)
Overrides java.io.Reader.read (). |
| Methods inherited from class java.io.Reader |
mark, markSupported, read, read, ready, reset, skip |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsciiReader
public AsciiReader(java.io.Reader source)
- Initializes the AsciiReader.
- Parameters:
source - the source of the characters.
close
public void close()
throws java.io.IOException
- Overrides java.io.Reader.close ().
- Specified by:
close in class java.io.Reader
java.io.IOException
read
public int read(char[] cbuf,
int off,
int len)
throws java.io.IOException
- Overrides java.io.Reader.read ().
- Specified by:
read in class java.io.Reader
java.io.IOException