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.
-
NullPort()
-
-
close()
-
-
flush()
-
-
newline()
-
-
print(char)
-
-
print(double)
-
-
print(int)
-
-
print(String)
-
-
print(Value)
-
-
read()
-
-
read_char()
-
-
read_file()
-
-
write(Value)
-
NullPort
public NullPort()
close
public void close()
- Overrides:
- close in class Port
read_file
public Value read_file()
read
public Value read()
read_char
public Value read_char()
flush
public synchronized void flush()
newline
public synchronized void newline()
print
public void print(Value o)
write
public void write(Value o)
print
public synchronized void print(String s)
print
public synchronized void print(char c)
print
public synchronized void print(double d)
print
public synchronized void print(int i)
All Packages Class Hierarchy This Package Previous Next Index