org.openmdx.kernel.xml
Class InputStreamASCIIReader

java.lang.Object
  extended by java.io.Reader
      extended by 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.

The InputStreamASCIIReader is designed not to read ahead.


Field Summary
protected  InputStream in
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
InputStreamASCIIReader(InputStream in)
          Constructor
 
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.io.Reader
read, read, ready, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

in

protected InputStream in
Constructor Detail

InputStreamASCIIReader

public InputStreamASCIIReader(InputStream in)
Constructor

Parameters:
source -
Method Detail

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.