org.rubato.scheme
Class SInPort

java.lang.Object
  extended by org.rubato.scheme.SExpr
      extended by org.rubato.scheme.SInPort

public final class SInPort
extends SExpr

The class wrapping an input port as a Scheme value.

Author:
Gérard Milmeister

Field Summary
 
Fields inherited from class org.rubato.scheme.SExpr
NULL, VOID
 
Constructor Summary
SInPort(java.io.InputStream port)
          Creates an input port from an input stream.
 
Method Summary
 void close()
          Closes the port.
 java.lang.String display()
          Returns a string representation of this SExpr.
 boolean eq_p(SExpr sexpr)
          Returns true iff this is equal to sexpr in the eq? sense.
 boolean equal_p(SExpr sexpr)
          Returns true iff this is equal to sexpr in the equal? sense.
 boolean equals(java.lang.Object obj)
          Returns true iff this is equal to obj.
 boolean eqv_p(SExpr sexpr)
          Returns true iff this is equal to sexpr in the eqv? sense.
 java.io.InputStream getPort()
          Returns the input stream of this input port.
 java.io.BufferedReader getReader()
          Returns the reader of this input port.
 java.lang.String toString()
          Returns a string representation of this SExpr.
 
Methods inherited from class org.rubato.scheme.SExpr
car, cdr, cons, getCar, getCdr, getLength, isBoolean, isChar, isClosure, isComplex, isCons, isDenotator, isForm, isInteger, isList, isNull, isNumber, isPair, isPrimitive, isRational, isReal, isString, isSymbol, isVector, isVoid, nth, setCar, setCdr
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SInPort

public SInPort(java.io.InputStream port)
Creates an input port from an input stream.

Method Detail

eq_p

public boolean eq_p(SExpr sexpr)
Description copied from class: SExpr
Returns true iff this is equal to sexpr in the eq? sense.

Specified by:
eq_p in class SExpr

eqv_p

public boolean eqv_p(SExpr sexpr)
Description copied from class: SExpr
Returns true iff this is equal to sexpr in the eqv? sense.

Specified by:
eqv_p in class SExpr

equal_p

public boolean equal_p(SExpr sexpr)
Description copied from class: SExpr
Returns true iff this is equal to sexpr in the equal? sense.

Specified by:
equal_p in class SExpr

equals

public boolean equals(java.lang.Object obj)
Description copied from class: SExpr
Returns true iff this is equal to obj. Normally this returns the same result as SExpr.equal_p(org.rubato.scheme.SExpr).

Specified by:
equals in class SExpr

toString

public java.lang.String toString()
Description copied from class: SExpr
Returns a string representation of this SExpr.

Specified by:
toString in class SExpr

display

public java.lang.String display()
Description copied from class: SExpr
Returns a string representation of this SExpr. This is the representation intended to show the result of an evaluation, and should be a valid Scheme expression if possible.

Specified by:
display in class SExpr

close

public void close()
Closes the port.


getPort

public java.io.InputStream getPort()
Returns the input stream of this input port.


getReader

public java.io.BufferedReader getReader()
Returns the reader of this input port.