org.openjena.atlas.io
Class InStreamASCII

java.lang.Object
  extended by java.io.Reader
      extended by org.openjena.atlas.io.InStreamASCII
All Implemented Interfaces:
Closeable, Readable, CharStream

public final class InStreamASCII
extends Reader
implements CharStream

Fast and streaming.


Constructor Summary
InStreamASCII(InputStream in)
           
InStreamASCII(InputStreamBuffered in)
           
 
Method Summary
 int advance()
           
 void close()
           
 void closeStream()
          Close the stream - different name from java.io.Reader.close
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 boolean ready()
           
 
Methods inherited from class java.io.Reader
mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InStreamASCII

public InStreamASCII(InputStream in)

InStreamASCII

public InStreamASCII(InputStreamBuffered in)
Method Detail

ready

public boolean ready()
              throws IOException
Overrides:
ready in class Reader
Throws:
IOException

close

public void close()
           throws IOException
Specified by:
close in interface Closeable
Specified by:
close in class Reader
Throws:
IOException

closeStream

public void closeStream()
Description copied from interface: CharStream
Close the stream - different name from java.io.Reader.close

Specified by:
closeStream in interface CharStream

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

advance

public int advance()
Specified by:
advance in interface CharStream


Licenced under the Apache License, Version 2.0