gov.lbl.genome.common
Class StringInputStream
java.lang.Object
java.io.InputStream
gov.lbl.genome.common.StringInputStream
- All Implemented Interfaces:
- java.io.Closeable
public class StringInputStream
- extends java.io.InputStream
Title:
Description: A simple wrapper to convert a Reader into an InputStream
(DOM takes InputStreams for parsing, and StringBufferInputStream
is deprecated)
Copyright: Copyright (c) 2002 Ernst Orlando Lawrence Berkeley National
Laboratory
Company: LBNL
Methods inherited from class java.io.InputStream |
close, mark, read, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
StringInputStream
public StringInputStream(java.io.Reader reader)
- StringInputStream
- Parameters:
reader
- Reader
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
available
public int available()
throws java.io.IOException
- Overrides:
available
in class java.io.InputStream
- Throws:
java.io.IOException
markSupported
public boolean markSupported()
- Overrides:
markSupported
in class java.io.InputStream