|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.InputStream | +--allensoft.io.ASCIIInputStream
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 |
public ASCIIInputStream(java.io.Reader in)
Method Detail |
public int read() throws java.io.IOException
read
in class java.io.InputStream
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |