|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.sql.Datum | +--oracle.sql.DatumWithConnection | +--oracle.sql.BFILE
Field Summary | |
static int |
MODE_READONLY
|
static int |
MODE_READWRITE
|
Method Summary | |
java.io.InputStream |
asciiStreamValue()
Convert to an ascii stream representation of the datum object |
void |
close()
Close a previously opened external LOB. |
void |
closeFile()
Close the FILE. |
boolean |
fileExists()
Find out if a given BFILE (whose locator) points to a file that actually exists on the server's filesystem. |
java.io.InputStream |
getBinaryStream()
Retrieve the entire BFILE as a stream. |
java.io.InputStream |
getBinaryStream(long pos)
Read from the external LOB as a stream at the requested position. |
byte[] |
getBytes(long pos,
int length)
Return a copy of the contents of the BFILE at the requested position. |
int |
getBytes(long pos,
int length,
byte[] buf)
Copy the contents of the BFILE at the requested position to suppied buffer. |
OracleConnection |
getConnection()
|
java.lang.String |
getDirAlias()
Gets the Bfile's directory alias. |
java.sql.Connection |
getJavaSqlConnection()
|
java.lang.String |
getName()
Gets the Bfile's file name. |
boolean |
isConvertibleTo(java.lang.Class jClass)
Test whether this data object can be converted to the specified Java data type. |
boolean |
isFileOpen()
Find out whether a BFILE was opened with the give BFILE. |
boolean |
isOpen()
Check whether the external LOB is opened. |
long |
length()
The length of the BFILE in bytes. |
void |
open()
Open a external LOB in the readonly mode. |
void |
open(int mode)
Open a external LOB in the indicated mode. |
void |
openFile()
Open the FILE. |
long |
position(BFILE pattern,
long start)
Determine the byte position at which the given pattern |
long |
position(byte[] pattern,
long start)
Determine the byte position at which the given byte pattern |
java.lang.Object |
toJdbc()
Convert this data object into its default Java object type. |
Methods inherited from class oracle.sql.DatumWithConnection |
assertNotNull,
assertNotNull,
getOracleConnection |
Methods inherited from class oracle.sql.Datum |
bigDecimalValue,
binaryStreamValue,
booleanValue,
byteValue,
characterStreamValue,
dateValue,
doubleValue,
equals,
floatValue,
getBytes,
getLength,
getStream,
intValue,
longValue,
makeJdbcArray,
setBytes,
setShareBytes,
shareBytes,
stringValue,
timestampValue,
timeValue |
Methods inherited from class java.lang.Object |
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
public static final int MODE_READONLY
public static final int MODE_READWRITE
Method Detail |
public long length() throws java.sql.SQLException
public byte[] getBytes(long pos, int length) throws java.sql.SQLException
pos
- is the first byte of the bfile to be extracted.(1-based)length
- is the number of consecutive bytes to be copied.public int getBytes(long pos, int length, byte[] buf) throws java.sql.SQLException
pos
- is the first byte of the bfile to be extracted. (1-based)length
- is the number of consecutive bytes to be copied.buf
- is the buffer to had the extracted bytes.public java.io.InputStream getBinaryStream() throws java.sql.SQLException
public long position(byte[] pattern, long start) throws java.sql.SQLException
pattern
- is the pattern to search for.start
- is the position at which to begin searching. (1-based)public long position(BFILE pattern, long start) throws java.sql.SQLException
searchstr
- is the pattern to search for.start
- is the position at which to begin searching. (1-based)public java.lang.String getName() throws java.sql.SQLException
bfile
- The Bfile for which to get the file name.public java.lang.String getDirAlias() throws java.sql.SQLException
bfile
- The Bfile for which to get the directory alias.public void openFile() throws java.sql.SQLException
bfile
- The BFILE object to be opened.public boolean isFileOpen() throws java.sql.SQLException
bfile
- The Bfile to be tested.public boolean fileExists() throws java.sql.SQLException
bfile
- The Bfile to be tested.public void closeFile() throws java.sql.SQLException
bfile
- The Bfile to be closed.public java.io.InputStream getBinaryStream(long pos) throws java.sql.SQLException
pos
- is the position data to be read.public void open() throws java.sql.SQLException
public void open(int mode) throws java.sql.SQLException
public void close() throws java.sql.SQLException
public boolean isOpen() throws java.sql.SQLException
public java.lang.Object toJdbc() throws java.sql.SQLException
public boolean isConvertibleTo(java.lang.Class jClass)
jClass
- specifies the Java data type to test against.public java.io.InputStream asciiStreamValue() throws java.sql.SQLException
public java.sql.Connection getJavaSqlConnection() throws java.sql.SQLException
public OracleConnection getConnection() throws java.sql.SQLException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |