public class RealInputStream
extends java.io.InputStream
Modifier and Type | Field and Description |
---|---|
static int |
KGHSSTREAM
Constant to denote a kghsstream.
|
static int |
OCISTREAM
Constant to denote an ocistream.
|
Constructor and Description |
---|
RealInputStream(java.sql.Connection conn, long c_state, int type)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
close()
Function to close the RealInputStream
|
boolean |
markSupported()
Function to check if "mark" and "reset" are supported
|
int |
read()
Function to read the next byte of data
|
int |
read(byte[] b)
Function to read upto b.length bytes of data into a byte array
|
int |
read(byte[] b, int off, int len)
Function to read upto "len" bytes of data into a byte array
|
public static final int OCISTREAM
public static final int KGHSSTREAM
public RealInputStream(java.sql.Connection conn, long c_state, int type) throws java.sql.SQLException
c_state
- Pointer to the corresponding C state.java.sql.SQLException
public int read(byte[] b)
read
in class java.io.InputStream
b
- The byte array to read intopublic int read()
read
in class java.io.InputStream
public boolean markSupported()
markSupported
in class java.io.InputStream
public int read(byte[] b, int off, int len)
read
in class java.io.InputStream
b
- The byte array to read intooff
- Start offset of the datalen
- The maximum number of bytes to readpublic void close()
close
in interface java.io.Closeable
close
in interface java.lang.AutoCloseable
close
in class java.io.InputStream