allensoft.io
Class ASCIIInputStream

java.lang.Object
  |
  +--java.io.InputStream
        |
        +--allensoft.io.ASCIIInputStream

public class ASCIIInputStream
extends java.io.InputStream

Takes a reader and converts it to an input stream which reads in ASCII characters. If any characters on not in the ASCII range then an IOException will be thrown to prevent corrupted values being read in. This is needed by a lot of stupid APIs that use InputStreams for reading text files (eg Properties and XML API) instead of Readers.


Constructor Summary
ASCIIInputStream(java.io.Reader in)
           
 
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
 

Constructor Detail

ASCIIInputStream

public ASCIIInputStream(java.io.Reader in)
Method Detail

read

public int read()
         throws java.io.IOException
Overrides:
read in class java.io.InputStream