Class Basic

java.lang.Object
  |
  +--Basic

public class Basic
extends java.lang.Object


Field Summary
static char CR
           
static char EOF
           
static java.lang.String EOF_STRING
           
static boolean IODone
           
static char NL
           
static int OS
           
static int OS_MAC
           
static int OS_UNIX
           
static int OS_WIN95
           
static char SP
           
 
Constructor Summary
Basic()
           
 
Method Summary
static void assume(boolean condition)
          a simple assumption.
static void assume(boolean condition, java.lang.String msg)
          a simple assumption.
static void error(java.lang.String msg)
          Write an error message.
static char read()
          Read a character
static void readBlanks()
           
static boolean readBoolean()
           
static double readDouble()
           
static int readInt()
           
static java.lang.String readLine()
           
static void readLn()
           
static java.lang.String readName()
           
static void readNext()
           
static java.lang.String readWord()
           
static void useInputEncoding(java.lang.String enc)
          Sets a new input encoding with enc.
static void write(boolean value)
           
static void write(boolean value, int width)
           
static void write(char value)
           
static void write(char value, int width)
           
static void write(double value)
           
static void write(double value, int width)
           
static void write(int value)
           
static void write(int value, int width)
           
static void write(java.lang.String value)
           
static void write(java.lang.String value, int width)
           
static void writeLn()
           
static void writeLn(boolean value)
           
static void writeLn(boolean value, int width)
           
static void writeLn(char value)
           
static void writeLn(char value, int width)
           
static void writeLn(double value)
           
static void writeLn(double value, int width)
           
static void writeLn(int value)
           
static void writeLn(int value, int width)
           
static void writeLn(java.lang.String value)
           
static void writeLn(java.lang.String value, int width)
           
static void writeSame(char value, int number)
           
static void writeSpace(int number)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OS_MAC

public static final int OS_MAC

OS_UNIX

public static final int OS_UNIX

OS_WIN95

public static final int OS_WIN95

OS

public static final int OS

EOF_STRING

public static final java.lang.String EOF_STRING

CR

public static final char CR

EOF

public static final char EOF

NL

public static final char NL

SP

public static final char SP

IODone

public static boolean IODone
Constructor Detail

Basic

public Basic()
Method Detail

assume

public static void assume(boolean condition)
a simple assumption. Won't halt the program
Parameters:
condition - if condition is false a message will be printed

assume

public static void assume(boolean condition,
                          java.lang.String msg)
a simple assumption. Won't halt the program
Parameters:
condition - if condition is false msg will be printed
msg - the message to be printed

error

public static void error(java.lang.String msg)
Write an error message.
Parameters:
msg - the message to be printed

useInputEncoding

public static void useInputEncoding(java.lang.String enc)
Sets a new input encoding with enc.
Parameters:
enc - a String describing the input encoding e.g. "ISO8859_1"

read

public static char read()
Read a character

readBlanks

public static void readBlanks()

readBoolean

public static boolean readBoolean()

readDouble

public static double readDouble()

readInt

public static int readInt()

readLine

public static java.lang.String readLine()

readLn

public static void readLn()

readName

public static java.lang.String readName()

readNext

public static void readNext()

readWord

public static java.lang.String readWord()

write

public static void write(boolean value)

write

public static void write(boolean value,
                         int width)

write

public static void write(char value)

write

public static void write(char value,
                         int width)

write

public static void write(double value)

write

public static void write(double value,
                         int width)

write

public static void write(int value)

write

public static void write(int value,
                         int width)

write

public static void write(java.lang.String value)

write

public static void write(java.lang.String value,
                         int width)

writeLn

public static void writeLn()

writeLn

public static void writeLn(boolean value)

writeLn

public static void writeLn(boolean value,
                           int width)

writeLn

public static void writeLn(char value)

writeLn

public static void writeLn(char value,
                           int width)

writeLn

public static void writeLn(double value)

writeLn

public static void writeLn(double value,
                           int width)

writeLn

public static void writeLn(int value)

writeLn

public static void writeLn(int value,
                           int width)

writeLn

public static void writeLn(java.lang.String value)

writeLn

public static void writeLn(java.lang.String value,
                           int width)

writeSame

public static void writeSame(char value,
                             int number)

writeSpace

public static void writeSpace(int number)