![]() |
BioRadio SDK - Java Android
1.1
|
Public Member Functions | |
FileStreamWrapper (OutputStream stream) | |
FileStreamWrapper (InputStream stream) | |
int | read () throws IOException |
void | flush () |
long | getLength () |
void | write (byte[] buffer, int offset, int count) |
void | write (byte[] buffer) |
void | write (int count) |
void | write (byte value) |
void | close () |
final long | getActualLength () |
long | getPosition () |
void | setPosition (long value) |
int | read (byte[] buffer, int offset, int count) |
void | setLength (long value) |
final long | getBytesFree () |
final void | write (byte[] buffer, int length) |
int | getReadPosition () |
void | setReadPosition (int readPosition) |
int | getWritePosition () |
void | setWritePosition (int writePosition) |
![]() | |
abstract void | close () |
abstract void | flush () |
abstract void | write (byte[] b) |
abstract void | write (byte[] b, int off, int len) |
abstract void | write (int b) |
![]() | |
byte [] | inputStreamToArray () throws IOException |
Protected Member Functions | |
void | dispose (boolean disposing) |
File stream wrapper class for a bio radio device.
com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.FileStreamWrapper | ( | OutputStream | stream | ) |
File stream wrapper constructor - take an output stream.
stream | Take an OutputStream as argument. |
com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.FileStreamWrapper | ( | InputStream | stream | ) |
File stream wrapper constructor - take an input stream.
stream | Take an InputStream as argument. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.close | ( | ) |
Close method - call the flash method and set the dataBuffer to null.
|
protected |
Dispose method.
disposing | Take a boolean balute for disposing. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.flush | ( | ) |
Flush method. - set read and write position to zero.
final long com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.getActualLength | ( | ) |
Get actual length.
final long com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.getBytesFree | ( | ) |
Get a set of bytes.
long com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.getLength | ( | ) |
Get length of a data buffer.
long com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.getPosition | ( | ) |
Get position.
int com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.getReadPosition | ( | ) |
Get read position.
int com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.getWritePosition | ( | ) |
Get write position.
int com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.read | ( | ) | throws IOException |
Read method. - return 0.
IOException |
int com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.read | ( | byte [] | buffer, |
int | offset, | ||
int | count | ||
) |
Read method.
buffer | Take a byte array for the buffer parameter. |
offset | Take an integer for the offset. |
count | Take an itneger for the count. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.setLength | ( | long | value | ) |
Set length.
value | Take a long value for set length. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.setPosition | ( | long | value | ) |
Set position.
value | Take a long value for setting the position. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.setReadPosition | ( | int | readPosition | ) |
Set read position.
readPosition | Take an integer for the read position parameter. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.setWritePosition | ( | int | writePosition | ) |
Set write position.
writePosition | Take an integer for the write position parameter. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.write | ( | byte [] | buffer, |
int | offset, | ||
int | count | ||
) |
Write to output stream method.
buffer | Take a byte array as a buffer parameter. |
offset | Take an integer for the offset parameter. |
count | Take an integer for the count parameter. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.write | ( | byte [] | buffer | ) |
Write to a buffer.
buffer | Take a byte array as a buffer parameter. |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.write | ( | int | count | ) |
Write method.
count |
void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.write | ( | byte | value | ) |
Write method.
value | Take a byte as parameter. |
final void com.glneurotech.devices.test.bioradiovirtualdevice.FileStreamWrapper.write | ( | byte [] | buffer, |
int | length | ||
) |
Write method.
buffer | Take a byte array for the buffer parameter. |
length | Take an integer for the length parameter. |