org.openmdx.kernel.xml
Class InputStreamASCIIReader
java.lang.Object
java.io.Reader
org.openmdx.kernel.xml.InputStreamASCIIReader
- All Implemented Interfaces:
- Closeable, Readable
public class InputStreamASCIIReader
- extends Reader
InputStream ASCII Reader
This InputStream Reader is able to read ASCII
characters encoded in any of the following formats provided the stream
does not contain a byte order mark or any other non-ASCII character up
the position it is read through the InputStreamASCIIReader.
- US-ASCII
- ISO-8859-1
- UTF-8
- UTF-16
- UTF-32
The InputStreamASCIIReader is designed not to read ahead.
|
Method Summary |
void |
close()
Close disconnects the reader from the underlaying
InputStream rather than closing it. |
void |
mark(int readAheadLimit)
|
boolean |
markSupported()
|
int |
read()
|
int |
read(char[] cbuf,
int off,
int len)
|
void |
reset()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
in
protected InputStream in
InputStreamASCIIReader
public InputStreamASCIIReader(InputStream in)
- Constructor
- Parameters:
source -
close
public void close()
throws IOException
- Close disconnects the reader from the underlaying
InputStream rather than closing it.
- Specified by:
close in interface Closeable- Specified by:
close in class Reader
- Throws:
IOException
read
public int read(char[] cbuf,
int off,
int len)
throws IOException
- Specified by:
read in class Reader
- Throws:
IOException
read
public int read()
throws IOException
- Overrides:
read in class Reader
- Throws:
IOException
mark
public void mark(int readAheadLimit)
throws IOException
- Overrides:
mark in class Reader
- Throws:
IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported in class Reader
reset
public void reset()
throws IOException
- Overrides:
reset in class Reader
- Throws:
IOException
This software is published under the BSD license. Copyright © 2003-2007, OMEX AG, Switzerland, All rights reserved. Use is subject to license terms.