org.autoplot.hapi.AbstractBinaryRecordReader

read data record-by-record, so the client doesn't need to worry if the file is local or coming from the network.


readRecord

readRecord( java.nio.ByteBuffer buf ) → int

read data to fill the buffer, or return null if no more data is available.

Parameters

buf - a ByteBuffer

Returns:

the number of bytes read, which will be the length of the buffer or -1.

[search for examples] [view on GitHub] [view on old javadoc]