All Packages Class Hierarchy This Package Previous Next Index
Class com.ibm.as400.access.AS400JDBCBlobLocator
java.lang.Object
|
+----com.ibm.as400.access.AS400JDBCBlobLocator
- public class AS400JDBCBlobLocator
- extends Object
- implements Blob
The AS400JDBCBlobLocator class provides access to binary large
objects. The data is valid only within the current
transaction.
-
getBinaryStream()
- Returns the entire blob as a stream of uninterpreted bytes.
-
getBytes(long, int)
- Returns part of the contents of the blob.
-
length()
- Returns the length of the blob.
-
position(Blob, long)
- Returns the position at which a pattern is found in the blob.
-
position(byte[], long)
- Returns the position at which a pattern is found in the blob.
getBinaryStream
public InputStream getBinaryStream() throws SQLException
- Returns the entire blob as a stream of uninterpreted bytes.
- Returns:
- The stream.
- Throws: SQLException
- If an error occurs.
getBytes
public byte[] getBytes(long start,
int length) throws SQLException
- Returns part of the contents of the blob.
- Parameters:
- start - The position within the blob (1-based).
- length - The length to return.
- Returns:
- The contents.
- Throws: SQLException
- If the position is not valid,
if the length is not valid,
or an error occurs.
length
public long length() throws SQLException
- Returns the length of the blob.
- Returns:
- The length of the blob, in bytes.
- Throws: SQLException
- If an error occurs.
position
public long position(byte pattern[],
long start) throws SQLException
- Returns the position at which a pattern is found in the blob.
This method is not supported.
- Parameters:
- pattern - The pattern.
- start - The position within the blob to begin
searching (1-based).
- Returns:
- Always -1. This method is not supported.
- Throws: SQLException
- If the pattern is null,
the position is not valid,
or an error occurs.
position
public long position(Blob pattern,
long start) throws SQLException
- Returns the position at which a pattern is found in the blob.
This method is not supported.
- Parameters:
- pattern - The pattern.
- start - The position within the blob to begin
searching (1-based).
- Returns:
- Always -1. This method is not supported.
- Throws: SQLException
- If the pattern is null,
the position is not valid,
or an error occurs.
All Packages Class Hierarchy This Package Previous Next Index