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.InputStream
An 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.Reader
reader
-
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 int
available()
int
read()
int
read(byte[] b, int off, int len)
void
reset()
long
skip(long n)
-
-
-
Method Detail
-
read
public int read() throws java.io.IOException
- Specified by:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
read
public int read(byte[] b, int off, int len) throws java.io.IOException
- Overrides:
read
in classjava.io.InputStream
- Throws:
java.io.IOException
-
skip
public long skip(long n) throws java.io.IOException
- Overrides:
skip
in classjava.io.InputStream
- Throws:
java.io.IOException
-
available
public int available() throws java.io.IOException
- Overrides:
available
in classjava.io.InputStream
- Throws:
java.io.IOException
-
reset
public void reset() throws java.io.IOException
- Overrides:
reset
in classjava.io.InputStream
- Throws:
java.io.IOException
-
-