net.sourceforge.jtds.jdbc
Class LOBTest.RealInputStream

java.lang.Object
  extended byjava.io.InputStream
      extended bynet.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
 
Constructor Summary
(package private) LOBTest.RealInputStream()
           
 
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
 

Field Detail

LENGTH

static final int LENGTH
Length of the stream.

See Also:
Constant Field Values

pos

private int pos
Current position in the stream.

Constructor Detail

LOBTest.RealInputStream

LOBTest.RealInputStream()
Method Detail

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