All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class Jaja.NullPort

java.lang.Object
   |
   +----Jaja.Jaja
           |
           +----Jaja.Value
                   |
                   +----Jaja.Port
                           |
                           +----Jaja.NullPort

public class NullPort
extends Port
implements InputPortAble, OutputPortAble
This class provides a Port that acts as /dev/null in Posix, that is, it swallows any string it is asked to print (but does not print it) and if asked to provide a string, it returns an EOF. It is used in Worlds without input/output ports.


Constructor Index

 o NullPort()

Method Index

 o close()
 o flush()
 o newline()
 o print(char)
 o print(double)
 o print(int)
 o print(String)
 o print(Value)
 o read()
 o read_char()
 o read_file()
 o write(Value)

Constructors

 o NullPort
 public NullPort()

Methods

 o close
 public void close()
Overrides:
close in class Port
 o read_file
 public Value read_file()
 o read
 public Value read()
 o read_char
 public Value read_char()
 o flush
 public synchronized void flush()
 o newline
 public synchronized void newline()
 o print
 public void print(Value o)
 o write
 public void write(Value o)
 o print
 public synchronized void print(String s)
 o print
 public synchronized void print(char c)
 o print
 public synchronized void print(double d)
 o print
 public synchronized void print(int i)

All Packages  Class Hierarchy  This Package  Previous  Next  Index