10.12.2012 Views

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

Oracle C++ Call Interface Programmer's Guide

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Bfile Class<br />

close()<br />

closeStream()<br />

Table 8–2 Bfile Methods (Cont.)<br />

Method Summary<br />

fileExists() on page 8-7 Test whether the BFILE exists.<br />

getDirAlias() on page 8-7 Return the directory alias of the BFILE.<br />

getFileName() on page 8-7 Return the name of the BFILE.<br />

getStream() on page 8-7 Return data from the BFILE as a Stream object.<br />

isInitialized() on page 8-8 Test whether the Bfile object is initialized.<br />

isNull() on page 8-8 Test whether the Bfile object is atomically null.<br />

isOpen() on page 8-8 Test whether the BFILE is open.<br />

length() on page 8-9 Return the number of bytes in the BFILE.<br />

open() on page 8-9 Open the BFILE with read-only access.<br />

operator=() on page 8-9 Assign a BFILE locator to the Bfile object.<br />

operator==() on page 8-9 Test whether two Bfile objects are equal.<br />

operator!=() on page 8-10 Test whether two Bfile objects are not equal.<br />

read() on page 8-10 Read a specified portion of the BFILE into a buffer.<br />

setName() on page 8-11 Set the directory alias and file name of the BFILE.<br />

setNull() on page 8-11 Set the Bfile object to atomically null.<br />

This method closes a previously opened BFILE.<br />

Syntax<br />

void close();<br />

This method closes the stream obtained from the BFILE.<br />

Syntax<br />

void closeStream(Stream *stream);<br />

8-6 <strong>Oracle</strong> <strong>C++</strong> <strong>Call</strong> <strong>Interface</strong> Programmer’s <strong>Guide</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!