BioRadio SDK - Java Android
1.1
|
Public Member Functions | |
final IDaqDevice | getBaseDevice () |
final void | setBaseDevice (IDaqDevice value) |
final RingBufferTransport | getBufferTransportLayer () |
final void | setBufferTransportLayer (RingBufferTransport value) |
final GlntStream | getInputFile () |
final void | setInputFile (GlntStream value) |
VirtualDeviceAdapter (IDaqDevice device, RingBufferTransport bufferTransport, GlntStream inputStream) throws IOException | |
final void | feedNextChunk () throws IOException |
final void | feedNextChunk (int chunkSize) throws IOException |
final boolean | getEndOfFileReached () |
final void | close () throws IOException |
Static Public Attributes | |
static final int | DefaultChunkSize = 32767 |
Provides access to a "virtual" device that accepts input data from a file rather than streaming from a physical device.
com.glneurotech.devices.common.VirtualDeviceAdapter.VirtualDeviceAdapter | ( | IDaqDevice | device, |
RingBufferTransport | bufferTransport, | ||
GlntStream | inputStream | ||
) | throws IOException |
Virtual device adapter.
device | Take an IDaqDevice. |
bufferTransport | Take a RingBufferTransport. |
inputStream | Take a GlntStream. |
IOException |
final void com.glneurotech.devices.common.VirtualDeviceAdapter.close | ( | ) | throws IOException |
Close the file or stop acquisition and disconnect the device.
IOException |
final void com.glneurotech.devices.common.VirtualDeviceAdapter.feedNextChunk | ( | ) | throws IOException |
Streams the next chunk of data to the virtual device.
final void com.glneurotech.devices.common.VirtualDeviceAdapter.feedNextChunk | ( | int | chunkSize | ) | throws IOException |
Streams a chunk of data of a specified length to the virtual device.
chunkSize | The number of bytes to stream to the device. |
final IDaqDevice com.glneurotech.devices.common.VirtualDeviceAdapter.getBaseDevice | ( | ) |
The underlying DaqDevice object receiving input data from the file.
final boolean com.glneurotech.devices.common.VirtualDeviceAdapter.getEndOfFileReached | ( | ) |
Indicates when the end of the input file has been reached and there is no more data to feed to the device.
|
static |
The default number of bytes that will be read from the input file and fed to the virtual device input stream. This value is 32,767.