| Modifier and Type | Field and Description |
|---|---|
protected static short |
BLOB_TYPE_BYTES |
protected static short |
BLOB_TYPE_STREAM |
protected byte[] |
blobBuffer |
protected byte[] |
blobDesc |
protected java.io.InputStream |
BlobInputStream |
protected static short |
BLOBISNULL |
protected short |
blobType |
protected short |
ifxType |
protected boolean |
isBlob_loaded |
protected int |
tb_end |
protected short |
tb_flags |
protected int |
tb_size |
protected int |
tb_start |
protected IfxTmpFile |
tempBlobFile |
conn, encodedLength, extendedID, extendedName, extendedOwner, isNull, jdbcType, sourceType, trace, typeMap, used_in_update| Constructor and Description |
|---|
IfxBlob(byte[] blobBuffer)
IfxBlob() constructor will be called from setAsciiStream() method
It takes two parameters.
|
IfxBlob(java.io.InputStream fin,
int length)
IfxBlob() constructor will be called from setAsciiStream() method
It takes two parameters.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the instance states
|
protected void |
finalize() |
void |
fromAsciiStream(java.io.InputStream fin,
int length)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromAsciiStream(java.io.InputStream fin,
long length) |
void |
fromBinaryStream(java.io.InputStream fin,
int length)
Accepts the Input Stream data and make ready for sending to
it to server.
|
void |
fromBlob(java.sql.Blob blob)
Accepts the blob object and make ready for sending to
it to server.
|
void |
fromBytes(byte[] blobBuffer)
Accepts the byte array data and make ready for sending to
it to server.
|
void |
fromCharacterStream(java.io.Reader x,
int length)
Accepts the Reader data and make ready for sending to
it to server.
|
void |
fromCharacterStream(java.io.Reader x,
long length) |
void |
fromClob(java.sql.Clob clob)
Accepts the clob object and make ready for sending to
it to server.
|
void |
fromIfx(byte[] b)
Set value of this data type to the given Informix network format
|
void |
fromIfx(byte[] b,
int offset,
int size)
Set value of this data type to the given Informix network format
|
void |
fromInputStream(java.io.InputStream fin,
int length) |
void |
fromInputStream(java.io.InputStream fin,
long length) |
void |
fromString(java.lang.String S)
Accepts the String data and make ready for sending to
it to server.
|
protected byte[] |
getBlobBuffer() |
protected java.lang.String |
getBlobFileName() |
protected java.io.InputStream |
getBlobInputStream() |
protected int |
getBlobLength() |
protected short |
getBlobType() |
protected boolean |
isBlobByteType() |
protected boolean |
isBlobLoaded() |
protected boolean |
isIfxTextType() |
protected void |
setBlobBuffer(byte[] buffer) |
protected void |
setBlobFileName() |
protected void |
setBlobLength(int size) |
protected void |
setBlobLength(int size,
int start,
int end) |
protected void |
setLoaded() |
java.io.InputStream |
toAsciiStream()
Return the fetched blob data as an Input Stream.
|
java.io.InputStream |
toBinaryStream()
Return the fetched blob data as an Input Stream.
|
java.sql.Blob |
toBlob() |
byte[] |
toBytes()
Return the fetched blob data as byte array.
|
java.io.Reader |
toCharacterStream() |
java.sql.Clob |
toClob() |
byte[] |
toIfx()
Convert value to Informix network format
|
byte[] |
toIfxTuple()
Convert value to Informix tuple format
|
java.lang.Object |
toObject()
Return the blob Object as byte array.
|
java.lang.String |
toString()
Return the fetched blob data as String.
|
clearWarning, equals, fromBinaryStream, fromBoolean, fromBoolean, fromByte, fromByte, fromDate, fromDecimal, fromDecimal, fromDouble, fromDouble, fromFloat, fromFloat, fromIfx, fromIfx, fromIfx, fromIfx, fromInt, fromInt, fromIntervalDF, fromIntervalYM, fromLong, fromLong, fromNClob, fromObject, fromObject, fromObject, fromRowId, fromShort, fromShort, fromSQLXML, fromString, fromTime, fromTimestamp, get_used_in_update, getEncodedLength, getWarning, isNull, nullify, set_used_in_update, setConnection, setExtendedTypeName, setIfxType, setTypeMap, toBoolean, toByte, toDate, toDecimal, toDouble, toFloat, toIfxBSONObject, toInputStream, toInt, toInterval, toIntervalDF, toIntervalYM, toLong, toNClob, toObject, toRowId, toShort, toSQLXML, toTime, toTimestamp, toUnloadString, unnullifyprotected static final short BLOBISNULL
protected static final short BLOB_TYPE_BYTES
protected static final short BLOB_TYPE_STREAM
protected byte[] blobDesc
protected int tb_start
protected int tb_end
protected int tb_size
protected short tb_flags
protected java.io.InputStream BlobInputStream
protected IfxTmpFile tempBlobFile
protected byte[] blobBuffer
protected short blobType
protected boolean isBlob_loaded
protected short ifxType
public IfxBlob(java.io.InputStream fin,
int length)
throws java.sql.SQLException
java.sql.SQLExceptionpublic IfxBlob(byte[] blobBuffer)
throws java.sql.SQLException
java.sql.SQLExceptionprotected short getBlobType()
protected boolean isBlobByteType()
protected boolean isIfxTextType()
protected byte[] getBlobBuffer()
protected void setBlobBuffer(byte[] buffer)
protected int getBlobLength()
protected void setBlobLength(int size,
int start,
int end)
protected void setBlobLength(int size)
protected java.io.InputStream getBlobInputStream()
protected java.lang.String getBlobFileName()
protected void setBlobFileName()
protected boolean isBlobLoaded()
protected void setLoaded()
public void fromIfx(byte[] b)
throws java.sql.SQLException
public void fromIfx(byte[] b,
int offset,
int size)
throws java.sql.SQLException
public byte[] toIfx()
public byte[] toIfxTuple()
toIfxTuple in class IfxObjectpublic java.io.InputStream toAsciiStream()
throws java.sql.SQLException
toAsciiStream in class IfxObjectjava.sql.SQLExceptionpublic void fromInputStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
fromInputStream in class IfxObjectjava.sql.SQLExceptionpublic void fromInputStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
fromInputStream in class IfxObjectjava.sql.SQLExceptionpublic void fromCharacterStream(java.io.Reader x,
long length)
throws java.sql.SQLException
fromCharacterStream in class IfxObjectjava.sql.SQLExceptionpublic void fromCharacterStream(java.io.Reader x,
int length)
throws java.sql.SQLException
fromCharacterStream in class IfxObjectjava.sql.SQLExceptionpublic java.io.Reader toCharacterStream()
throws java.sql.SQLException
toCharacterStream in class IfxObjectjava.sql.SQLExceptionpublic void fromAsciiStream(java.io.InputStream fin,
long length)
throws java.sql.SQLException
fromAsciiStream in class IfxObjectjava.sql.SQLExceptionpublic void fromAsciiStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
fromAsciiStream in class IfxObjectjava.sql.SQLExceptionpublic java.io.InputStream toBinaryStream()
throws java.sql.SQLException
toBinaryStream in class IfxObjectjava.sql.SQLExceptionpublic void fromBinaryStream(java.io.InputStream fin,
int length)
throws java.sql.SQLException
fromBinaryStream in class IfxObjectjava.sql.SQLExceptionpublic java.lang.String toString()
public void fromString(java.lang.String S)
throws java.sql.SQLException
fromString in class IfxObjectjava.sql.SQLExceptionpublic java.lang.Object toObject()
throws java.sql.SQLException
public byte[] toBytes()
throws java.sql.SQLException
public void fromBytes(byte[] blobBuffer)
public java.sql.Blob toBlob()
throws java.sql.SQLException
public java.sql.Clob toClob()
throws java.sql.SQLException
public void fromBlob(java.sql.Blob blob)
throws java.sql.SQLException
public void fromClob(java.sql.Clob clob)
throws java.sql.SQLException
public void clear()
IfxObjectprotected void finalize()
finalize in class java.lang.Object