|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMIDlet
TestFileIO
public class TestFileIO
This class can be used to test the FileIO
and the
FileIOListener
classes.
Constructor Summary | |
---|---|
TestFileIO()
|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TestFileIO()
Method Detail |
---|
public void fileRead(int state, byte[] content)
FileIOListener
FileIO.read
method
ends up.
fileRead
in interface FileIOListener
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 filepublic void fileWritten(int state)
FileIOListener
FileIO.write
method
ends up.
fileWritten
in interface FileIOListener
state
- describes how the operation ended up. Can be
STATE_OK
, STATE_PROBLEM
,
STATE_NOT_READY
, STATE_FILENAME_NULL
, or
STATE_CONTENT_NULL
public void fileAppended(int state)
FileIOListener
FileIO.append
method
ends up.
fileAppended
in interface FileIOListener
state
- describes how the operation ended up. Can be
STATE_OK
, STATE_PROBLEM
,
STATE_NOT_READY
, STATE_FILENAME_NULL
, or
STATE_CONTENT_NULL
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |