All Packages Class Hierarchy This Package Previous Next Index
Class duckMachine.architecture.ioUnit
java.lang.Object
|
+----duckMachine.architecture.ioUnit
- public class ioUnit
- extends Object
- implements ioUnitI
The input output unit of the machine. This will not work with jdk-1.0!
-
ioUnit()
-
-
ioUnit(InputStream, OutputStream)
-
-
getReader()
-
-
getWriter()
-
-
readData()
- Reads an integer from the input stream.
-
writeData(Word)
- Writes an int and flushes the output stream.
ioUnit
public ioUnit()
ioUnit
public ioUnit(InputStream i,
OutputStream o)
getReader
public StreamTokenizer getReader()
getWriter
public PrintWriter getWriter()
readData
public Word readData() throws ioE
- Reads an integer from the input stream. If the next
token is a number but not an integer, it is coerced to an int.
- Throws: ioE
- If the input cannot be parsed as a number or
some kind of IO exception occurs.
writeData
public void writeData(Word w)
- Writes an int and flushes the output stream.
All Packages Class Hierarchy This Package Previous Next Index