gov.lbl.genome.common
Class StringInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by 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


Constructor Summary
StringInputStream(java.io.Reader reader)
          StringInputStream
 
Method Summary
 int available()
           
 boolean markSupported()
           
 int read()
           
 
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
 

Constructor Detail

StringInputStream

public StringInputStream(java.io.Reader reader)
StringInputStream

Parameters:
reader - Reader
Method Detail

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