net.sourceforge.jtds.jdbc
Class LOBTest.RealInputStream
java.lang.Object
java.io.InputStream
net.sourceforge.jtds.jdbc.LOBTest.RealInputStream
- Enclosing class:
- LOBTest
- static class LOBTest.RealInputStream
- extends java.io.InputStream
Implements an InputStream
that only returns a limited
number of bytes on read (less than the requested number of bytes).
Used for testing Blob
insert behavior.
Field Summary |
(package private) static int |
LENGTH
Length of the stream. |
private int |
pos
Current position in the stream. |
Fields inherited from class java.io.InputStream |
|
Method Summary |
int |
read()
|
int |
read(byte[] b)
|
int |
read(byte[] b,
int off,
int len)
|
Methods inherited from class java.io.InputStream |
available, close, mark, markSupported, reset, skip |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LENGTH
static final int LENGTH
- Length of the stream.
- See Also:
- Constant Field Values
pos
private int pos
- Current position in the stream.
LOBTest.RealInputStream
LOBTest.RealInputStream()
read
public int read()
read
public int read(byte[] b)
read
public int read(byte[] b,
int off,
int len)
Generated on October 27 2012