Package com.mckoi.database.jdbc
Class AsciiInputStream
- java.lang.Object
-
- java.io.InputStream
-
- com.mckoi.database.jdbc.AsciiInputStream
-
- All Implemented Interfaces:
java.io.Closeable,java.lang.AutoCloseable
class AsciiInputStream extends java.io.InputStreamAn InputStream that converts a Reader to a plain ascii stream. This cuts out the top 8 bits of the unicode char.
-
-
Field Summary
Fields Modifier and Type Field Description private java.io.Readerreader
-
Constructor Summary
Constructors Constructor Description AsciiInputStream(java.io.Reader reader)AsciiInputStream(java.lang.String s)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intavailable()intread()intread(byte[] b, int off, int len)voidreset()longskip(long n)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException- Specified by:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException- Overrides:
readin classjava.io.InputStream- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException- Overrides:
skipin classjava.io.InputStream- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException- Overrides:
availablein classjava.io.InputStream- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException- Overrides:
resetin classjava.io.InputStream- Throws:
java.io.IOException
-
-