uk.ac.warwick.dcs.util.io
Class IO

java.lang.Object
  |
  +--uk.ac.warwick.dcs.util.io.IO

public class IO
extends Object

Class IO is a simple dialog box containing three components: a greeting message, an input field, and an "OK" button.

Version:
21 March 1998
Author:
Mike Joy

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
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IO

public IO()
Method Detail

readboolean

public static boolean readboolean()
Read a boolean using the GUI interface (default prompt).
Returns:
a boolean entered by the user

readBoolean

public static Boolean readBoolean()
Read a Boolean using the GUI interface (default prompt).
Returns:
a Boolean entered by the user

readboolean

public static boolean readboolean(String promptString)
Read a boolean using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a boolean entered by the user

readBoolean

public static Boolean readBoolean(String promptString)
Read a Boolean using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a Boolean entered by the user

readchar

public static char readchar()
Read a char using the GUI interface (default prompt).
Returns:
a char entered by the user

readchar

public static char readchar(String promptString)
Read a char using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a char entered by the user

readCharacter

public static Character readCharacter()
Read a Character using the GUI interface (default prompt).
Returns:
a Character entered by the user

readCharacter

public static Character readCharacter(String promptString)
Read a Character using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a Character entered by the user

readdouble

public static double readdouble()
Read a double using the GUI interface (default prompt).
Returns:
a double entered by the user

readDouble

public static Double readDouble()
Read a Double using the GUI interface (default prompt).
Returns:
a Double entered by the user

readdouble

public static double readdouble(String promptString)
Read a double using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a double entered by the user

readDouble

public static Double readDouble(String promptString)
Read a Double using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a Double entered by the user

readfloat

public static float readfloat()
Read a float using the GUI interface (default prompt).
Returns:
a float entered by the user

readFloat

public static Float readFloat()
Read a Float using the GUI interface (default prompt).
Returns:
a Float entered by the user

readfloat

public static float readfloat(String promptString)
Read a float using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a float entered by the user

readFloat

public static Float readFloat(String promptString)
Read a Float using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a Float entered by the user

readint

public static int readint()
Read an int using the GUI interface (default prompt).
Returns:
an int entered by the user

readint

public static int readint(String promptString)
Read an int using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
an int entered by the user

readInteger

public static Integer readInteger()
Read an Integer using the GUI interface (default prompt).
Returns:
an Integer entered by the user

readInteger

public static Integer readInteger(String promptString)
Read an Integer using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
an Integer entered by the user

readlong

public static long readlong()
Read a long using the GUI interface (default prompt).
Returns:
a Long entered by the user

readLong

public static Long readLong()
Read a Long using the GUI interface (default prompt).
Returns:
a Long entered by the user

readlong

public static long readlong(String promptString)
Read a long using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a long entered by the user

readLong

public static Long readLong(String promptString)
Read a Long using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a Long entered by the user

readshort

public static short readshort()
Read a short using the GUI interface (default prompt).
Returns:
a short entered by the user

readShort

public static Short readShort()
Read a Short using the GUI interface (default prompt).
Returns:
a Short entered by the user

readshort

public static short readshort(String promptString)
Read a short using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a short entered by the user

readShort

public static Short readShort(String promptString)
Read a Short using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a Short entered by the user

readString

public static String readString()
Read a String using the GUI interface (default prompt).
Returns:
a String entered by the user

readString

public static String readString(String promptString)
Read a String using the GUI interface.
Parameters:
promptString - a String to prompt the user
Returns:
a String entered by the user

write

public static void write(boolean b)
Display a boolean in the GUI interface.
Parameters:
b - a boolean to be displayed

write

public static void write(Boolean b)
Display a Boolean in the GUI interface.
Parameters:
b - a Boolean to be displayed

write

public static void write(char c)
Display a char in the GUI interface.
Parameters:
c - a char to be displayed

write

public static void write(Character c)
Display a Character in the GUI interface.
Parameters:
c - a Character to be displayed

write

public static void write(double d)
Display a double in the GUI interface.
Parameters:
d - a double to be displayed

write

public static void write(Double d)
Display a Double in the GUI interface.
Parameters:
d - a Double to be displayed

write

public static void write(float f)
Display a float in the GUI interface.
Parameters:
f - a float to be displayed

write

public static void write(Float f)
Display a Float in the GUI interface.
Parameters:
f - a Float to be displayed

write

public static void write(int i)
Display an int in the GUI interface.
Parameters:
i - an int to be displayed

write

public static void write(Integer i)
Display an Integer in the GUI interface.
Parameters:
i - an Integer to be displayed

write

public static void write(long l)
Display a long in the GUI interface.
Parameters:
l - a long to be displayed

write

public static void write(Long l)
Display a Long in the GUI interface.
Parameters:
l - a Long to be displayed

write

public static void write(short s)
Display a short in the GUI interface.
Parameters:
s - a short to be displayed

write

public static void write(Short s)
Display a Short in the GUI interface.
Parameters:
s - a Short to be displayed

write

public static void write(String s)
Display a String in the GUI interface.
Parameters:
s - a String to be displayed

write

public static void write(String message,
                         boolean b)
Display a boolean in the GUI interface.
Parameters:
message - a String to prepend the output
b - a boolean to be displayed

write

public static void write(String message,
                         Boolean b)
Display a Boolean in the GUI interface.
Parameters:
message - a String to prepend the output
b - a Boolean to be displayed

write

public static void write(String message,
                         char c)
Display a char in the GUI interface.
Parameters:
message - a String to prepend the output
c - a char to be displayed

write

public static void write(String message,
                         Character c)
Display a Character in the GUI interface.
Parameters:
message - a String to prepend the output
c - a Character to be displayed

write

public static void write(String message,
                         double d)
Display a double in the GUI interface.
Parameters:
message - a String to prepend the output
d - a double to be displayed

write

public static void write(String message,
                         Double d)
Display a Double in the GUI interface.
Parameters:
message - a String to prepend the output
d - a Double to be displayed

write

public static void write(String message,
                         float f)
Display a float in the GUI interface.
Parameters:
message - a String to prepend the output
f - a float to be displayed

write

public static void write(String message,
                         Float f)
Display a Float in the GUI interface.
Parameters:
message - a String to prepend the output
f - a Float to be displayed

write

public static void write(String message,
                         int i)
Display an int in the GUI interface.
Parameters:
message - a String to prepend the output
i - an int to be displayed

write

public static void write(String message,
                         Integer i)
Display an Integer in the GUI interface.
Parameters:
message - a String to prepend the output
i - an Integer to be displayed

write

public static void write(String message,
                         long l)
Display a long in the GUI interface.
Parameters:
message - a String to prepend the output
l - a long to be displayed

write

public static void write(String message,
                         Long l)
Display a Long in the GUI interface.
Parameters:
message - a String to prepend the output
l - a Long to be displayed

write

public static void write(String message,
                         short s)
Display a short in the GUI interface.
Parameters:
message - a String to prepend the output
s - a short to be displayed

write

public static void write(String message,
                         Short s)
Display a Short in the GUI interface.
Parameters:
message - a String to prepend the output
s - a Short to be displayed

write

public static void write(String message,
                         String s)
Display a String in the GUI interface.
Parameters:
message - a String to prepend the output
s - a String to be displayed


Copyright © 1996-2001 The University of Warwick. All rights reserved.