BFILE

Extends oracle.sql.DatumWithConnection in Oracle9i, oracle.sql.Datum in Oracle8i.

Fields

MODE_READONLY
Static int. New with Oracle9i.
MODE_READWRITE
Static int. New with Oracle9i.

Methods

asciiStreamValue( )

Returns java.io.InputStream, which is a converted ASCII stream representation of the Datum object.

close( )

Closes a previously opened external LOB. New with Oracle9i.

closeFile( )

Closes the file.

fileExists( )

Returns a Boolean indicating whether the locator for a given BFILE points to a file that actually exists on the server’s filesystem.

getBinaryStream( )

Returns java.io.InputStream of the entire BFILE.

getBinaryStream(long pos )

Returns java.io.InputStream as a stream from position pos. New with Oracle9i.

getBytes(long pos , int length )

Returns byte[] as a copy of the contents of the BFILE at the requested position pos of length.

getBytes(long pos , int length , byte[] buf )

Returns int; copies the contents of the BFILE from pos with length to buf.

getConnection( )

Returns OracleConnection.

getDirAlias( )

Returns java.lang.String, the BFILE’s directory alias.

getJavaSqlConnection( )

Returns java.sql.Connection. New with Oracle9i.

getName( )

Returns java.lang.String with the BFILE’s filename.

isConvertibleTo(java.lang.Class jClass )

Returns a Boolean indicating whether this Data object can be converted to the specified Java datatype.

isFileOpen( )

Returns a Boolean indicating whether a BFILE was opened with the given BFILE.

isOpen( )

Returns a Boolean indicating ...

Get Oracle in a Nutshell now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.