velosurf.util
Class ReaderInputStream

java.lang.Object
  extended by java.io.InputStream
      extended by velosurf.util.ReaderInputStream
All Implemented Interfaces:
java.io.Closeable

public class ReaderInputStream
extends java.io.InputStream

Simple class to allow casting a reader in an input stream.

Author:
Claude Brisson

Field Summary
private  java.io.Reader reader
           
 
Constructor Summary
ReaderInputStream(java.io.Reader reader)
           
 
Method Summary
 int read()
           
 
Methods inherited from class java.io.InputStream
available, close, mark, markSupported, read, read, reset, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

reader

private java.io.Reader reader
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


~ooOoo~