org.hsqldb.lib
Class AsciiStringInputStream

java.lang.Object
java.io.InputStream
org.hsqldb.lib.StringInputStream
org.hsqldb.lib.AsciiStringInputStream
- All Implemented Interfaces:
- java.io.Closeable
- public class AsciiStringInputStream
- extends StringInputStream
minimal InputStream subclass to fetch low order bytes form a String
- Version:
- 1.7.0
|
Method Summary |
int |
available()
This method returns the number of bytes that can be read from this
stream before a read can block. |
int |
read()
This method reads an unsigned byte from the input stream and returns it
as an int in the range of 0-255. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AsciiStringInputStream
public AsciiStringInputStream(java.lang.String s)
read
public int read()
throws java.io.IOException
- Description copied from class:
java.io.InputStream
- This method reads an unsigned byte from the input stream and returns it
as an int in the range of 0-255. This method also will return -1 if
the end of the stream has been reached.
This method will block until the byte can be read.
- Overrides:
read in class StringInputStream
available
public int available()
throws java.io.IOException
- Description copied from class:
java.io.InputStream
- This method returns the number of bytes that can be read from this
stream before a read can block. A return of 0 indicates that blocking
might (or might not) occur on the very next read attempt.
This method always returns 0 in this class
- Overrides:
available in class StringInputStream