org.apache.derby.impl.jdbc
Class ReaderToAscii
java.lang.Object
java.io.InputStream
org.apache.derby.impl.jdbc.ReaderToAscii
- All Implemented Interfaces:
- java.io.Closeable
public final class ReaderToAscii
- extends java.io.InputStream
ReaderToAscii converts Reader (with characters) to a stream of ASCII characters.
Field Summary |
private boolean |
closed
|
private char[] |
conv
|
private java.io.Reader |
data
|
Method Summary |
void |
close()
|
int |
read()
|
int |
read(byte[] buf,
int off,
int len)
|
long |
skip(long len)
|
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
data
private final java.io.Reader data
conv
private char[] conv
closed
private boolean closed
ReaderToAscii
public ReaderToAscii(java.io.Reader data)
read
public int read()
throws java.io.IOException
- Specified by:
read
in class java.io.InputStream
- Throws:
java.io.IOException
read
public int read(byte[] buf,
int off,
int len)
throws java.io.IOException
- Overrides:
read
in class java.io.InputStream
- Throws:
java.io.IOException
skip
public long skip(long len)
throws java.io.IOException
- Overrides:
skip
in class java.io.InputStream
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Specified by:
close
in interface java.io.Closeable
- Overrides:
close
in class java.io.InputStream
- Throws:
java.io.IOException
Apache Derby V10.6 Internals - Copyright © 2004,2007 The Apache Software Foundation. All Rights Reserved.