public class IfxLobInputStream
extends java.io.InputStream
| Constructor and Description |
|---|
IfxLobInputStream(IfxConnection connection,
IfxLocator loPtr)
Constructor
Construct an IfxLobInputStream instance
|
IfxLobInputStream(IfxConnection connection,
IfxLocator loPtr,
long size) |
| Modifier and Type | Method and Description |
|---|---|
int |
available()
Returns the number of bytes that can be read from this file input
stream without blocking.
|
void |
close()
Closes this input stream and releases any system resources
associated with the stream.
|
protected java.io.InputStream |
getStream() |
boolean |
markSupported()
Tests if this Input Stream supports the mark method.
|
int |
read()
Reads a byte of data from this input stream.
|
int |
read(byte[] b)
Reads upto b.length bytes of data from this input Stream into an
array of bytes.
|
int |
read(byte[] b,
int off,
int len)
Reads upto len bytes of data from this input Stream into an
array of bytes.
|
void |
reset()
Reset the Large object current reading point to the begining
|
long |
skip(long n)
Skips over and discards n bytes of data from the
input stream.
|
public IfxLobInputStream(IfxConnection connection, IfxLocator loPtr) throws java.sql.SQLException, java.io.IOException
IfxConnection - IfxLocator - java.sql.SQLException - If object instance cannot be instantiatedjava.io.IOExceptionpublic IfxLobInputStream(IfxConnection connection, IfxLocator loPtr, long size) throws java.sql.SQLException, java.io.IOException
java.sql.SQLExceptionjava.io.IOExceptionpublic int read()
throws java.io.IOException
read in class java.io.InputStreamjava.io.IOException - if an I/O error occurs.public int read(byte[] b)
throws java.io.IOException
read in class java.io.InputStreamb - the buffer into which the data is read.java.io.IOException - If an I/O error has occurred.public int read(byte[] b,
int off,
int len)
throws java.io.IOException
read in class java.io.InputStreamb - the buffer into which the data is read.off - the start offset of the data - the offset into b at which we should start writing.len - the maximum number of bytes read.java.io.IOException - If an I/O error has occurred.public long skip(long n)
throws java.io.IOException
skip in class java.io.InputStreamn - the number of bytes to be skipped.java.io.IOException - if an I/O error occurs.public void reset()
throws java.io.IOException
reset in class java.io.InputStreamjava.io.IOException - if an I/O error occurs.public boolean markSupported()
markSupported in class java.io.InputStreampublic int available()
throws java.io.IOException
available in class java.io.InputStreamjava.io.IOException - if an I/O error occurs.public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseableclose in class java.io.InputStreamjava.io.IOException - if an I/O error occurs.protected java.io.InputStream getStream()
throws java.sql.SQLException
java.sql.SQLException