org.openjena.atlas.io
Class CharStreamReader

java.lang.Object
  extended by java.io.Reader
      extended by org.openjena.atlas.io.CharStreamReader
All Implemented Interfaces:
Closeable, Readable, CharStream
Direct Known Subclasses:
CharStreamBasic, CharStreamBuffered

public abstract class CharStreamReader
extends Reader
implements CharStream

Machinary to add Reader functionality to a CharStream


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

Constructor Detail

CharStreamReader

public CharStreamReader()
Method Detail

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

close

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

advance

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

closeStream

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

Specified by:
closeStream in interface CharStream


Licenced under the Apache License, Version 2.0