com.servingxml.io.helpers
Class ReaderInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by com.servingxml.io.helpers.ReaderInputStream
All Implemented Interfaces:
java.io.Closeable

public class ReaderInputStream
extends java.io.InputStream

An InputStream of the UTF-16 encoding of a Reader.

Version:
$Revision: 1.1 $ $Date: 2000/01/26 04:32:11 $

Constructor Summary
ReaderInputStream(java.io.Reader reader)
           
 
Method Summary
 void close()
           
 java.nio.charset.Charset getCharset()
           
 int read()
           
 int read(byte[] b, int off, int len)
           
 
Methods inherited from class java.io.InputStream
available, mark, markSupported, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ReaderInputStream

public ReaderInputStream(java.io.Reader reader)
Method Detail

read

public int read()
         throws java.io.IOException
Specified by:
read in class java.io.InputStream
Throws:
java.io.IOException

read

public int read(byte[] b,
                int off,
                int len)
         throws java.io.IOException
Overrides:
read in class java.io.InputStream
Throws:
java.io.IOException

getCharset

public java.nio.charset.Charset getCharset()

close

public void close()
Specified by:
close in interface java.io.Closeable
Overrides:
close in class java.io.InputStream