Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

Class silk.InputPort

java.lang.Object
 |
 +----silk.SchemeUtils
 |
 +----silk.InputPort

public class InputPort
extends SchemeUtils
InputPort is to Scheme as InputStream is to Java.


Fields inherited from class silk.SchemeUtils

FALSE , ONE , TRUE , ZERO

Constructor Summary
InputPort (java.io.InputStream in)
Construct an InputPort from an InputStream.
InputPort (java.io.Reader in)
Construct an InputPort from a Reader.

Method Summary
java.lang.Object close ()
Close the port.
static boolean isEOF (java.lang.Object x)
Is the argument the EOF object?
int peekCh ()
Peek at and return the next Scheme character as an int, -1 for EOF.
java.lang.Object peekChar ()
Peek at and return the next Scheme character (or EOF).
java.lang.Object read ()
Read and return a Scheme expression, or EOF.
java.lang.Object readChar ()
Read and return a Scheme character or EOF.
Methods inherited from class silk.SchemeUtils
chr, chr, cons, equal, eqv, error, first, inPort, length, list, list, listStar, listToString, listToVector, num, num, outPort, rest, reverse, second, setFirst, setRest, str, sym, third, truth, truth, vec, vectorToList, warn, write
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Constructor Detail

InputPort

public InputPort(java.io.InputStream in)
Construct an InputPort from an InputStream.

InputPort

public InputPort(java.io.Reader in)
Construct an InputPort from a Reader.
Method Detail

readChar

public java.lang.Object readChar()
Read and return a Scheme character or EOF.

peekChar

public java.lang.Object peekChar()
Peek at and return the next Scheme character (or EOF). However, don't consume the character.

peekCh

public int peekCh()
Peek at and return the next Scheme character as an int, -1 for EOF. However, don't consume the character.

read

public java.lang.Object read()
Read and return a Scheme expression, or EOF.

close

public java.lang.Object close()
Close the port. Return TRUE if ok.

isEOF

public static boolean isEOF(java.lang.Object x)
Is the argument the EOF object?

Class | Tree | Deprecated | Index | Help
PREV | NEXT SHOW LISTS | HIDE LISTS

AltStyle によって変換されたページ (->オリジナル) /