| Modifier and Type | Field and Description |
|---|---|
| private Blob | |
| private Clob | |
| private InputStream | |
| pack-priv int | columnNumber
Column index starting with 1 |
| pack-priv int | ndrdaType
DRDA Type of column/parameter |
| pack-priv EngineResultSet | rs
ResultSet that contains the stream |
| Access | Constructor and Description |
|---|---|
| private | |
| private | |
| private |
| Modifier and Type | Method and Description |
|---|---|
| public int | available()
Overrides java. |
| private static void | |
| public void | close()
Overrides java. Implements java. |
| public boolean | equals(Object
the reference object with which to compare. arg0)Overrides java. |
| protected void | finalize()
Overrides java. |
| private InputStream | |
| private Reader | |
| public static EXTDTAInputStream | Returns: null if the value is null or a new EXTDTAInputStream corresponding to rs.getBinaryStream(column) value and associated lengthresult set from which to retrieve the lob rs, int column number column, int FD:OCA type of object one of
DRDAConstants.DRDA_TYPE_NLOBBYTES
DRDAConstants.DRDA_TYPE_LOBBYTES
DRDAConstants.DRDA_TYPE_NLOBCMIXED
DRDAConstants.DRDA_TYPE_LOBCMIXED drdaType)Create a new EXTDTAInputStream. |
| public static EXTDTAInputStream | getEXTDTAStream(CallableStatement
CallableStatement from which to retrieve the lob cs, int column number column, int FD:OCA type of object one of
DRDAConstants.DRDA_TYPE_NLOBBYTES
DRDAConstants.DRDA_TYPE_LOBBYTES
DRDAConstants.DRDA_TYPE_NLOBCMIXED
DRDAConstants.DRDA_TYPE_LOBCMIXED drdaType)Create a new EXTDTAInputStream from a CallableStatement. |
| public int | |
| public void | initInputStream()
This method takes information of ResultSet and initializes the binaryInputStream variable of this object with not empty stream by calling getBinaryStream or getCharacterStream() as appropriate. |
| protected boolean | |
| public boolean | |
| private long | |
| public void | mark(int
the maximum limit of bytes that can be read before
the mark position becomes invalid. arg0)Overrides java. |
| public boolean | markSupported()
Overrides java. mark and
reset methods.
|
| public int | read()
Implements abstract java. initInputStream() be called before we can read from the stream
|
| public int | read(byte[]
the buffer into which the data is read. arg0)Overrides java. b.
|
| public int | read(byte[]
the buffer into which the data is read. arg0, int the start offset in array arg1, int b
at which the data is written.the maximum number of bytes to read. arg2)Overrides java. len bytes of data from the input stream into
an array of bytes.
|
| public void | reset()
Overrides java. mark method was last called on this input stream.
|
| public long | skip(long
the number of bytes to be skipped. arg0)Overrides java. n bytes of data from this input
stream.
|
| _blob | back to summary |
|---|---|
| private Blob _blob | |
| _clob | back to summary |
|---|---|
| private Clob _clob | |
| binaryInputStream | back to summary |
|---|---|
| private InputStream binaryInputStream | |
| columnNumber | back to summary |
|---|---|
| pack-priv int columnNumber Column index starting with 1 | |
| ndrdaType | back to summary |
|---|---|
| pack-priv int ndrdaType DRDA Type of column/parameter | |
| rs | back to summary |
|---|---|
| pack-priv EngineResultSet rs ResultSet that contains the stream | |
| EXTDTAInputStream | back to summary |
|---|---|
| private EXTDTAInputStream(ResultSet rs, int columnNumber, int ndrdaType) | |
| EXTDTAInputStream | back to summary |
|---|---|
| private EXTDTAInputStream(Clob clob, int ndrdaType) | |
| EXTDTAInputStream | back to summary |
|---|---|
| private EXTDTAInputStream(Blob blob, int ndrdaType) | |
| available | back to summary |
|---|---|
| public int available() throws IOException Overrides java. Doc from java. Returns an estimate of the number of bytes that can be read (or skipped over) from this input stream without blocking, which may be 0, or 0 when end of stream is detected. The read might be on the same thread or another thread. A single read or skip of this many bytes will not block, but may read or skip fewer bytes. Note that while some implementations of A subclass's implementation of this method may choose to throw an
| |
| badDRDAType | back to summary |
|---|---|
| private static void badDRDAType(int drdaType) | |
| close | back to summary |
|---|---|
| public void close() throws IOException Overrides java. Implements java. Doc from java. Closes this input stream and releases any system resources associated with the stream.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object arg0) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| finalize | back to summary |
|---|---|
| protected void finalize() throws Throwable Overrides java. Doc from java. Called by the garbage collector on an object when garbage collection
determines that there are no more references to the object.
A subclass overrides the
When running in a Java virtual machine in which finalization has been
disabled or removed, the garbage collector will never call
The general contract of
The
The Java programming language does not guarantee which thread will
invoke the
After the
The
Any exception thrown by the
| |
| getBinaryStream | back to summary |
|---|---|
| private InputStream getBinaryStream() throws SQLException | |
| getCharacterStream | back to summary |
|---|---|
| private Reader getCharacterStream() throws SQLException | |
| getEXTDTAStream | back to summary |
|---|---|
| public static EXTDTAInputStream getEXTDTAStream(ResultSet rs, int column, int drdaType) Create a new EXTDTAInputStream. Before read the stream must be
initialized by the user with
| |
| getEXTDTAStream | back to summary |
|---|---|
| public static EXTDTAInputStream getEXTDTAStream(CallableStatement cs, int column, int drdaType) throws SQLException Create a new EXTDTAInputStream from a CallableStatement.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for the object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| initInputStream | back to summary |
|---|---|
| public void initInputStream() throws SQLException This method takes information of ResultSet and initializes the binaryInputStream variable of this object with not empty stream by calling getBinaryStream or getCharacterStream() as appropriate. The Reader returned from getCharacterStream() will be encoded in binarystream. | |
| isEmptyStream | back to summary |
|---|---|
| protected boolean isEmptyStream() throws SQLException | |
| isNull | back to summary |
|---|---|
| public boolean isNull() throws SQLException Is the value null? Null status is obtained from the underlying EngineResultSet or LOB, so that it can be determined before the stream is retrieved.
| |
| length | back to summary |
|---|---|
| private long length() throws SQLException | |
| mark | back to summary |
|---|---|
| public void mark(int arg0) Overrides java. Doc from java. Marks the current position in this input stream. A subsequent call to
the The The general contract of Marking a closed stream should not have any effect on the stream.
| |
| markSupported | back to summary |
|---|---|
| public boolean markSupported() Overrides java. Doc from java. Tests if this input stream supports the
| |
| read | back to summary |
|---|---|
| public int read() throws IOException Implements abstract java. Requires
| |
| read | back to summary |
|---|---|
| public int read(byte[] arg0) throws IOException Overrides java. Doc from java. Reads some number of bytes from the input stream and stores them into
the buffer array If the length of The first byte read is stored into element
| |
| read | back to summary |
|---|---|
| public int read(byte[] arg0, int arg1, int arg2) throws IOException Overrides java. Doc from java. Reads up to This method blocks until input data is available, end of file is detected, or an exception is thrown. If The first byte read is stored into element In every case, elements
| |
| reset | back to summary |
|---|---|
| public void reset() throws IOException Overrides java. Doc from java. Repositions this stream to the position at the time the
The general contract of
| |
| skip | back to summary |
|---|---|
| public long skip(long arg0) throws IOException Overrides java. Doc from java. Skips over and discards
| |