Interface FileIOListener

All Known Implementing Classes:
TestFileIO

public interface FileIOListener

The listener interface for receiving FileIO events.

Author:
Michel Deriaz

Method Summary
 void fileAppended(int state)
          Called when the operation launched by the FileIO.append method ends up.
 void fileRead(int state, byte[] content)
          Called when the operation launched by the FileIO.read method ends up.
 void fileWritten(int state)
          Called when the operation launched by the FileIO.write method ends up.
 

Method Detail

fileRead

void fileRead(int state,
              byte[] content)
Called when the operation launched by the FileIO.read method ends up.

Parameters:
state - describes how the operation ended up. Can be STATE_OK, STATE_PROBLEM, STATE_NOT_READY, or STATE_FILENAME_NULL
content - the content of the file

fileWritten

void fileWritten(int state)
Called when the operation launched by the FileIO.write method ends up.

Parameters:
state - describes how the operation ended up. Can be STATE_OK, STATE_PROBLEM, STATE_NOT_READY, STATE_FILENAME_NULL, or STATE_CONTENT_NULL

fileAppended

void fileAppended(int state)
Called when the operation launched by the FileIO.append method ends up.

Parameters:
state - describes how the operation ended up. Can be STATE_OK, STATE_PROBLEM, STATE_NOT_READY, STATE_FILENAME_NULL, or STATE_CONTENT_NULL