|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.cornell.cs.sam.ui.SamText
public class SamText
This is a front end for executing a SaM program from a console
Constructor Summary | |
---|---|
SamText()
|
Method Summary | |
---|---|
static void |
main(java.lang.String[] args)
|
char |
readChar()
Request character input from the video implementation |
float |
readFloat()
Request floating point input from the video implementation |
int |
readInt()
Requests integer input from the video implementation |
java.lang.String |
readString()
Request String input from the video implementation |
void |
writeChar(char a)
Writes character output to the video implementation |
void |
writeFloat(float a)
Writes floating point output to the video implementation |
void |
writeInt(int a)
Writes integer output to the video implementation |
void |
writeString(java.lang.String a)
Writes string output to the video implementation |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SamText()
Method Detail |
---|
public static void main(java.lang.String[] args)
public int readInt()
Video
readInt
in interface Video
public java.lang.String readString()
Video
readString
in interface Video
public char readChar()
Video
readChar
in interface Video
public float readFloat()
Video
readFloat
in interface Video
public void writeInt(int a)
Video
writeInt
in interface Video
a
- The integer to be writtenpublic void writeFloat(float a)
Video
writeFloat
in interface Video
a
- The float to be writtenpublic void writeChar(char a)
Video
writeChar
in interface Video
a
- The character to be writtenpublic void writeString(java.lang.String a)
Video
writeString
in interface Video
a
- The string to be written
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |