BioRadio SDK - Java Android
1.1
|
Public Member Functions | |
final IDaqDevice | getBaseDevice () |
final void | setBaseDevice (IDaqDevice value) |
final LocalDateTime | getRecordingStartTime () |
final RingBufferTransport | getBufferTransportLayer () |
final void | setBufferTransportLayer (RingBufferTransport value) |
final FileInputStream | getInputFile () |
final void | setInputFile (FileInputStream value) |
VirtualDeviceAdapter (IDaqDevice device, RingBufferTransport bufferTransport, FileInputStream inputStream) throws IOException | |
VirtualDeviceAdapter (IDaqDevice device, RingBufferTransport bufferTransport, FileInputStream inputStream, LocalDateTime recordingStartTime) throws IOException | |
VirtualDeviceAdapter (IDaqDevice device, RingBufferTransport bufferTransport, String fileName) 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.bioradio.VirtualDeviceAdapter.VirtualDeviceAdapter | ( | IDaqDevice | device, |
RingBufferTransport | bufferTransport, | ||
FileInputStream | inputStream | ||
) | throws IOException |
Constructor for virtual device adapter
device | Take a IDaqDevice as parameter. |
bufferTransport | Take a RingBufferTransport for the buffer transport parameter. |
inputStream | Take a FileInputStream for the input stream parameter. |
IOException |
com.glneurotech.devices.bioradio.VirtualDeviceAdapter.VirtualDeviceAdapter | ( | IDaqDevice | device, |
RingBufferTransport | bufferTransport, | ||
FileInputStream | inputStream, | ||
LocalDateTime | recordingStartTime | ||
) | throws IOException |
Overloaded constructor also takes a recording start time parameter
device | Take a IDaqDevice as parameter. |
bufferTransport | Take a RingBufferTransport for the buffer transport parameter. |
inputStream | Take a FileInputStream for the input stream parameter. |
recordingStartTime | Take a LocalDateTime for the recording start time. |
IOException |
com.glneurotech.devices.bioradio.VirtualDeviceAdapter.VirtualDeviceAdapter | ( | IDaqDevice | device, |
RingBufferTransport | bufferTransport, | ||
String | fileName | ||
) | throws IOException |
Overloaded constructor takes an input file path string instead of a FileInputStream
device | Take a IDaqDevice as parameter. |
bufferTransport | Take a RingBufferTransport for the buffer transport parameter. |
fileName | Take a string for the file name parameter. |
IOException |
final void com.glneurotech.devices.bioradio.VirtualDeviceAdapter.close | ( | ) | throws IOException |
Closes the device and input stream
IOException |
final void com.glneurotech.devices.bioradio.VirtualDeviceAdapter.feedNextChunk | ( | ) | throws IOException |
Streams the next chunk of data to the virtual device.
IOException |
final void com.glneurotech.devices.bioradio.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. Take a integer as parameter for the chunk size. |
IOException |
final IDaqDevice com.glneurotech.devices.bioradio.VirtualDeviceAdapter.getBaseDevice | ( | ) |
Gets the underlying DaqDevice object receiving input data from the file.
final RingBufferTransport com.glneurotech.devices.bioradio.VirtualDeviceAdapter.getBufferTransportLayer | ( | ) |
Gets buffer transport layer
final boolean com.glneurotech.devices.bioradio.VirtualDeviceAdapter.getEndOfFileReached | ( | ) |
Indicates when the end of the input file has been reached and there is no more data to feed to the device.
final FileInputStream com.glneurotech.devices.bioradio.VirtualDeviceAdapter.getInputFile | ( | ) |
Gets input file.
final LocalDateTime com.glneurotech.devices.bioradio.VirtualDeviceAdapter.getRecordingStartTime | ( | ) |
The date and time at which the recording began.
final void com.glneurotech.devices.bioradio.VirtualDeviceAdapter.setBaseDevice | ( | IDaqDevice | value | ) |
Sets the underlying DaqDevice object receiving input data from the file.
final void com.glneurotech.devices.bioradio.VirtualDeviceAdapter.setBufferTransportLayer | ( | RingBufferTransport | value | ) |
Sets buffer transport layer
value | Take a RingBufferTransport as parameter. |
final void com.glneurotech.devices.bioradio.VirtualDeviceAdapter.setInputFile | ( | FileInputStream | value | ) |
Sets input file
value | Take a FileInputStream as parameter. |
|
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.