org.apache.derby.impl.jdbc
Class ReaderToUTF8Stream
java.lang.Object
java.io.InputStream
org.apache.derby.impl.jdbc.ReaderToUTF8Stream
- final class ReaderToUTF8Stream
- extends java.io.InputStream
Converts a java.io.Reader to the on-disk UTF8 format used by Cloudscape.
Fields inherited from class java.io.InputStream |
|
Method Summary |
private void |
checkSufficientData()
JDBC 3.0 (from tutorial book) requires that an
input stream has the correct number of bytes in
the stream. |
void |
close()
|
private void |
fillBuffer(int startingOffset)
|
int |
read()
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
available, mark, markSupported, read, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
reader
private LimitReader reader
buffer
private byte[] buffer
boff
private int boff
blen
private int blen
eof
private boolean eof
multipleBuffer
private boolean multipleBuffer
ReaderToUTF8Stream
ReaderToUTF8Stream(LimitReader reader)
read
public int read()
throws java.io.IOException
- Throws:
java.io.IOException
read
public int read(byte[] b,
int off,
int len)
throws java.io.IOException
- Throws:
java.io.IOException
fillBuffer
private void fillBuffer(int startingOffset)
throws java.io.IOException
- Throws:
java.io.IOException
checkSufficientData
private void checkSufficientData()
throws java.io.IOException
- JDBC 3.0 (from tutorial book) requires that an
input stream has the correct number of bytes in
the stream.
- Throws:
java.io.IOException
close
public void close()
throws java.io.IOException
- Throws:
java.io.IOException
Apache Derby V10.0 Engine Documentation - Copyright © 1997,2004 The Apache Software Foundation or its licensors, as applicable.