|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--uk.ac.warwick.dcs.util.io.IO
Class IO is a simple dialog box containing three components: a greeting message, an input field, and an "OK" button.
| Constructor Summary | |
IO()
|
|
| Method Summary | |
static boolean |
readboolean()
Read a boolean using the GUI interface (default prompt). |
static Boolean |
readBoolean()
Read a Boolean using the GUI interface (default prompt). |
static boolean |
readboolean(String promptString)
Read a boolean using the GUI interface. |
static Boolean |
readBoolean(String promptString)
Read a Boolean using the GUI interface. |
static char |
readchar()
Read a char using the GUI interface (default prompt). |
static char |
readchar(String promptString)
Read a char using the GUI interface. |
static Character |
readCharacter()
Read a Character using the GUI interface (default prompt). |
static Character |
readCharacter(String promptString)
Read a Character using the GUI interface. |
static double |
readdouble()
Read a double using the GUI interface (default prompt). |
static Double |
readDouble()
Read a Double using the GUI interface (default prompt). |
static double |
readdouble(String promptString)
Read a double using the GUI interface. |
static Double |
readDouble(String promptString)
Read a Double using the GUI interface. |
static float |
readfloat()
Read a float using the GUI interface (default prompt). |
static Float |
readFloat()
Read a Float using the GUI interface (default prompt). |
static float |
readfloat(String promptString)
Read a float using the GUI interface. |
static Float |
readFloat(String promptString)
Read a Float using the GUI interface. |
static int |
readint()
Read an int using the GUI interface (default prompt). |
static int |
readint(String promptString)
Read an int using the GUI interface. |
static Integer |
readInteger()
Read an Integer using the GUI interface (default prompt). |
static Integer |
readInteger(String promptString)
Read an Integer using the GUI interface. |
static long |
readlong()
Read a long using the GUI interface (default prompt). |
static Long |
readLong()
Read a Long using the GUI interface (default prompt). |
static long |
readlong(String promptString)
Read a long using the GUI interface. |
static Long |
readLong(String promptString)
Read a Long using the GUI interface. |
static short |
readshort()
Read a short using the GUI interface (default prompt). |
static Short |
readShort()
Read a Short using the GUI interface (default prompt). |
static short |
readshort(String promptString)
Read a short using the GUI interface. |
static Short |
readShort(String promptString)
Read a Short using the GUI interface. |
static String |
readString()
Read a String using the GUI interface (default prompt). |
static String |
readString(String promptString)
Read a String using the GUI interface. |
static void |
write(boolean b)
Display a boolean in the GUI interface. |
static void |
write(Boolean b)
Display a Boolean in the GUI interface. |
static void |
write(char c)
Display a char in the GUI interface. |
static void |
write(Character c)
Display a Character in the GUI interface. |
static void |
write(double d)
Display a double in the GUI interface. |
static void |
write(Double d)
Display a Double in the GUI interface. |
static void |
write(float f)
Display a float in the GUI interface. |
static void |
write(Float f)
Display a Float in the GUI interface. |
static void |
write(int i)
Display an int in the GUI interface. |
static void |
write(Integer i)
Display an Integer in the GUI interface. |
static void |
write(long l)
Display a long in the GUI interface. |
static void |
write(Long l)
Display a Long in the GUI interface. |
static void |
write(short s)
Display a short in the GUI interface. |
static void |
write(Short s)
Display a Short in the GUI interface. |
static void |
write(String s)
Display a String in the GUI interface. |
static void |
write(String message,
boolean b)
Display a boolean in the GUI interface. |
static void |
write(String message,
Boolean b)
Display a Boolean in the GUI interface. |
static void |
write(String message,
char c)
Display a char in the GUI interface. |
static void |
write(String message,
Character c)
Display a Character in the GUI interface. |
static void |
write(String message,
double d)
Display a double in the GUI interface. |
static void |
write(String message,
Double d)
Display a Double in the GUI interface. |
static void |
write(String message,
float f)
Display a float in the GUI interface. |
static void |
write(String message,
Float f)
Display a Float in the GUI interface. |
static void |
write(String message,
int i)
Display an int in the GUI interface. |
static void |
write(String message,
Integer i)
Display an Integer in the GUI interface. |
static void |
write(String message,
long l)
Display a long in the GUI interface. |
static void |
write(String message,
Long l)
Display a Long in the GUI interface. |
static void |
write(String message,
short s)
Display a short in the GUI interface. |
static void |
write(String message,
Short s)
Display a Short in the GUI interface. |
static void |
write(String message,
String s)
Display a String in the GUI interface. |
| Methods inherited from class java.lang.Object |
|
| Constructor Detail |
public IO()
| Method Detail |
public static boolean readboolean()
public static Boolean readBoolean()
public static boolean readboolean(String promptString)
promptString - a String to prompt the userpublic static Boolean readBoolean(String promptString)
promptString - a String to prompt the userpublic static char readchar()
public static char readchar(String promptString)
promptString - a String to prompt the userpublic static Character readCharacter()
public static Character readCharacter(String promptString)
promptString - a String to prompt the userpublic static double readdouble()
public static Double readDouble()
public static double readdouble(String promptString)
promptString - a String to prompt the userpublic static Double readDouble(String promptString)
promptString - a String to prompt the userpublic static float readfloat()
public static Float readFloat()
public static float readfloat(String promptString)
promptString - a String to prompt the userpublic static Float readFloat(String promptString)
promptString - a String to prompt the userpublic static int readint()
public static int readint(String promptString)
promptString - a String to prompt the userpublic static Integer readInteger()
public static Integer readInteger(String promptString)
promptString - a String to prompt the userpublic static long readlong()
public static Long readLong()
public static long readlong(String promptString)
promptString - a String to prompt the userpublic static Long readLong(String promptString)
promptString - a String to prompt the userpublic static short readshort()
public static Short readShort()
public static short readshort(String promptString)
promptString - a String to prompt the userpublic static Short readShort(String promptString)
promptString - a String to prompt the userpublic static String readString()
public static String readString(String promptString)
promptString - a String to prompt the userpublic static void write(boolean b)
b - a boolean to be displayedpublic static void write(Boolean b)
b - a Boolean to be displayedpublic static void write(char c)
c - a char to be displayedpublic static void write(Character c)
c - a Character to be displayedpublic static void write(double d)
d - a double to be displayedpublic static void write(Double d)
d - a Double to be displayedpublic static void write(float f)
f - a float to be displayedpublic static void write(Float f)
f - a Float to be displayedpublic static void write(int i)
i - an int to be displayedpublic static void write(Integer i)
i - an Integer to be displayedpublic static void write(long l)
l - a long to be displayedpublic static void write(Long l)
l - a Long to be displayedpublic static void write(short s)
s - a short to be displayedpublic static void write(Short s)
s - a Short to be displayedpublic static void write(String s)
s - a String to be displayed
public static void write(String message,
boolean b)
message - a String to prepend the outputb - a boolean to be displayed
public static void write(String message,
Boolean b)
message - a String to prepend the outputb - a Boolean to be displayed
public static void write(String message,
char c)
message - a String to prepend the outputc - a char to be displayed
public static void write(String message,
Character c)
message - a String to prepend the outputc - a Character to be displayed
public static void write(String message,
double d)
message - a String to prepend the outputd - a double to be displayed
public static void write(String message,
Double d)
message - a String to prepend the outputd - a Double to be displayed
public static void write(String message,
float f)
message - a String to prepend the outputf - a float to be displayed
public static void write(String message,
Float f)
message - a String to prepend the outputf - a Float to be displayed
public static void write(String message,
int i)
message - a String to prepend the outputi - an int to be displayed
public static void write(String message,
Integer i)
message - a String to prepend the outputi - an Integer to be displayed
public static void write(String message,
long l)
message - a String to prepend the outputl - a long to be displayed
public static void write(String message,
Long l)
message - a String to prepend the outputl - a Long to be displayed
public static void write(String message,
short s)
message - a String to prepend the outputs - a short to be displayed
public static void write(String message,
Short s)
message - a String to prepend the outputs - a Short to be displayed
public static void write(String message,
String s)
message - a String to prepend the outputs - a String to be displayed
|
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||