A file stream. More...
Public Member Functions | |
abstract void | close () |
Closes the file stream. More... | |
abstract boolean | exists () |
Returns a boolean value indicating whether the file exists. More... | |
abstract boolean | flush () |
Flushes the file stream. More... | |
abstract long | getLength () |
Gets the file stream length (must be opened first). More... | |
abstract String | getPath () |
Gets the path. More... | |
abstract long | getPosition () |
Gets the position in the file stream. More... | |
abstract void | open (fm.liveswitch.FileStreamAccess access) |
Opens the file stream. More... | |
abstract int | read (byte[] data, int index, int length) |
Reads data from the file stream. More... | |
abstract void | setPosition (long value) |
Sets the position in the file stream. More... | |
abstract boolean | write (byte[] data, int index, int length) |
Writes data to the file stream. More... | |
abstract boolean | writeTo (int location, byte[] data, int index, int length) |
Writes data to the file stream. More... | |
A file stream.
|
abstract |
Closes the file stream.
Implemented in fm.liveswitch.FileStream.
|
abstract |
Returns a boolean value indicating whether the file exists.
Implemented in fm.liveswitch.FileStream.
|
abstract |
Flushes the file stream.
Implemented in fm.liveswitch.FileStream.
|
abstract |
Gets the file stream length (must be opened first).
Implemented in fm.liveswitch.FileStream.
|
abstract |
Gets the path.
Implemented in fm.liveswitch.FileStream.
|
abstract |
Gets the position in the file stream.
Implemented in fm.liveswitch.FileStream.
|
abstract |
Opens the file stream.
access | The access requirement. |
|
abstract |
Reads data from the file stream.
data | The buffer to fill with data from the file. |
index | The index at which to start writing. |
length | The maximum number of bytes to read. |
Implemented in fm.liveswitch.FileStream.
|
abstract |
Sets the position in the file stream.
Implemented in fm.liveswitch.FileStream.
|
abstract |
Writes data to the file stream.
data | The data to write. |
index | The index at which to start reading. |
length | The number of bytes to write. |
Implemented in fm.liveswitch.FileStream.
|
abstract |
Writes data to the file stream.
location | The location to write to. |
data | The data to write to the file. |
index | The index at which to start reading. |
length | The number of bytes to write. |
Implemented in fm.liveswitch.FileStream.