|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--oracle.sql.Datum
|
+--oracle.sql.BFILE
This class will implements the java.sql.Bfile interface in JDBC 2.0 It provides the native implementation of the Bfile methods.
| Method Summary | |
java.io.InputStream |
asciiStreamValue()
Convert to an ascii stream representation of the datum object |
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. |
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()
Get connection object. |
java.lang.String |
getDirAlias()
Gets the Bfile's directory alias. |
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. |
long |
length()
The length of the BFILE in bytes. |
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.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 |
| 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 OracleConnection getConnection()
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||