org.strbio.io
Class EOFStringReader
java.lang.Object
java.io.Reader
java.io.StringReader
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 |
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 |
EOF
public boolean EOF
EOFStringReader
public EOFStringReader(java.lang.String s)
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