All Packages Class Hierarchy This Package Previous Next Index
Class Jaja.InputPort
java.lang.Object
|
+----Jaja.Jaja
|
+----Jaja.Value
|
+----Jaja.Port
|
+----Jaja.InputPort
- public class InputPort
- extends Port
- implements InputPortAble
-
name
-
-
stream
-
-
InputPort(String)
- This constructor may open a remote file if given an URL.
-
InputPort(String, Reader)
-
-
close()
-
-
initializeAsFile(String)
-
-
initializeAsURL(String)
-
-
peekChar()
-
-
read()
- Read a single Sexpression from an input port.
-
read(String)
- Convert a string into a Sexpression.
-
read_char()
- Read a single char.
-
read_file()
- Read a whole file and return the list of the Sexpressions it
contained.
-
toString()
- Convert a Value into a human-readable Java String.
name
protected String name
stream
protected Reader stream
InputPort
protected InputPort(String s,
Reader is)
InputPort
public InputPort(String s)
- This constructor may open a remote file if given an URL. The
difficulty is to parse an URL relative to the URL of the applet
if the interpreter is run from an applet.
initializeAsURL
public void initializeAsURL(String s) throws IOException
initializeAsFile
public void initializeAsFile(String s) throws IOException
close
public void close()
- Overrides:
- close in class Port
toString
public String toString()
- Convert a Value into a human-readable Java String.
- Overrides:
- toString in class Value
peekChar
protected int peekChar() throws IOException
read_char
public Value read_char()
- Read a single char.
read_file
public Value read_file()
- Read a whole file and return the list of the Sexpressions it
contained. You have to prefix this list with the begin special
form operator if you want to evaluate it.
read
public static Value read(String s)
- Convert a string into a Sexpression. The string should only
contain a single Sexpression (superfluous Sexpressions will be
ignored).
read
public Value read()
- Read a single Sexpression from an input port.
All Packages Class Hierarchy This Package Previous Next Index