|Oracle® interMedia Java Classes Reference
10g Release 1 (10.1)
Part Number B10830-01
public int readFromSource(byte[ ] [ ] ctx, int startpos, int numbytes, byte[ ] [ ] buffer)
Reads data from the data source. This method reads the specified number of bytes into the application buffer from the data source starting at the specified position in the data source.
Not all source plug-ins require that the data source be opened before it can be read. However, to ensure that an application will work with any current or future source plug-ins, call the openSource(byte[ ], byte[ ] [ ]) method before calling this method.
The source plug-in context information. See Oracle interMedia Reference for more information.
The start position in the data source.
The number of bytes to be read from the data source.
A byte array of the form [n], where n is greater than or equal to numbytes.
This method returns the number of bytes read, as an integer.
This exception is thrown if an error occurs executing the corresponding readFromSource( ) method in the database.