org.strbio.io
Class EOFStringReader

java.lang.Object
  extended by java.io.Reader
      extended by java.io.StringReader
          extended by org.strbio.io.EOFStringReader
All Implemented Interfaces:
java.io.Closeable, java.lang.Readable

public class EOFStringReader
extends java.io.StringReader

StringReader that returns false for ready() when at the end of the string.

  Version 1.0, 8/10/98
  

Version:
1.0, 8/10/98
Author:
JMC

Field Summary
 boolean EOF
           
 
Fields inherited from class java.io.Reader
lock
 
Constructor Summary
EOFStringReader(java.lang.String s)
           
 
Method Summary
 int read()
           
 int read(char[] cbuf, int off, int len)
           
 boolean ready()
           
 void reset()
           
 
Methods inherited from class java.io.StringReader
close, mark, markSupported, skip
 
Methods inherited from class java.io.Reader
read, read
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

EOF

public boolean EOF
Constructor Detail

EOFStringReader

public EOFStringReader(java.lang.String s)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.StringReader
Throws:
java.io.IOException

read

public int read(char[] cbuf,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.StringReader
Throws:
java.io.IOException

reset

public void reset()
           throws java.io.IOException
Overrides:
reset in class java.io.StringReader
Throws:
java.io.IOException

ready

public boolean ready()
Overrides:
ready in class java.io.StringReader