|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object dioscuri.IO
public class IO
Interface for user to interact with emulator
Field Summary | |
---|---|
java.lang.String |
imageFilename
|
Constructor Summary | |
---|---|
IO()
Class constructor |
Method Summary | |
---|---|
void |
exportBinaryStream(java.lang.String filename,
java.lang.String data)
Exports data from emulator to the file system in given filename. |
java.lang.String[] |
getArguments()
Returns arguments which may have been set during getCommand |
int |
getCommand()
Parses an input string into commands along with their arguments, execute a command if recognised, otherwise ignore. |
java.lang.String |
getInput()
Gets input from standard input and returns it as string. |
byte[] |
importBinaryStream(java.lang.String filename)
Fetches data from input stream and returns it as a byte array. |
void |
setOutput(java.lang.String string)
Sets given string to standard output. |
java.lang.String |
toString()
Returns a string representation of this class |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public java.lang.String imageFilename
Constructor Detail |
---|
public IO()
Method Detail |
---|
public byte[] importBinaryStream(java.lang.String filename) throws java.io.IOException
filename
-
java.io.IOException
public void exportBinaryStream(java.lang.String filename, java.lang.String data) throws java.io.IOException
filename
- data
-
java.io.IOException
public java.lang.String getInput()
public void setOutput(java.lang.String string)
string
- public int getCommand()
public java.lang.String[] getArguments()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |