sisc.io
Class PortValueWriter

java.lang.Object
  extended by sisc.util.Util
      extended by sisc.io.PortValueWriter
All Implemented Interfaces:
ValueWriter, ExpressionVisitor, Version
Direct Known Subclasses:
SharedValueWriter

public class PortValueWriter
extends Util
implements ValueWriter, ExpressionVisitor


Field Summary
 
Fields inherited from class sisc.util.Util
BACKQUOTE, BEGIN, bundles, EMPTYLIST, EMPTYVEC, EOF, ERRORK, EVAL, EXPSC, EXPTOP, FALSE, FCONT, FIVE, JEXCEPTION, LAMBDA, LOCATION, maxFloatPrecision, MESSAGE, minFloatPrecision, NAME, OTHER, PARENT, permitInterrupts, QUOTE, QUOTESYM, REPORT, SETBANG, SISC, SISC_SPECIFIC, SISCB, SOURCE_COLUMN, SOURCE_FILE, SOURCE_LINE, SYMENV, THIS, TOPLEVEL, TRUE, UNQUOTE, UNQUOTE_SPLICING, VOID, ZV
 
Fields inherited from interface sisc.util.Version
VERSION
 
Constructor Summary
PortValueWriter(java.io.Writer port, boolean vectorLengthPrefixing, boolean caseSensitive)
           
 
Method Summary
 ValueWriter append(char c)
           
 ValueWriter append(java.lang.String s)
           
 ValueWriter append(Value v)
           
 boolean caseSensitive()
           
 void display(Value v)
           
protected  void displayOrWrite(Value v, boolean display)
           
 boolean isInlinable(Value v)
           
 boolean vectorLengthPrefixing()
           
 boolean visit(ExpressionVisitee e)
           
 void write(Value v)
           
 
Methods inherited from class sisc.util.Util
annotated, annotatedAppEval, append, argCheck, argsToSymbols, assq, bininport, bininstream, binoutport, binoutstream, box, character, charinport, charinreader, charoutport, charoutwriter, charsetFromString, chr, cont, currentClassLoader, env, error, error, error, error, error, error, error, expr, getDefaultCharacterSet, immutablePair, immutableVector, inport, javaExceptionToString, javaWrap, justify, length, liMessage, liMessage, liMessage, liMessage, liMessage, liMessage, liMessage, list, list, list, list, list, makeURL, mapcar, memq, nlib, num, outport, pair, pairToExpressions, pairToExpVect, pairToValues, proc, read, registerBundle, reverse, reverseInPlace, simpleErrorToString, sourceAnnotations, str, string, sym, symbol, symval, truePair, truth, truth, typeError, typeError, updateName, url, url, url, valArrayToList, valArrayToList, valArrayToVec, vec, warn, warn, warn
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PortValueWriter

public PortValueWriter(java.io.Writer port,
                       boolean vectorLengthPrefixing,
                       boolean caseSensitive)
Method Detail

displayOrWrite

protected void displayOrWrite(Value v,
                              boolean display)
                       throws java.io.IOException
Throws:
java.io.IOException

display

public void display(Value v)
             throws java.io.IOException
Specified by:
display in interface ValueWriter
Throws:
java.io.IOException

write

public void write(Value v)
           throws java.io.IOException
Specified by:
write in interface ValueWriter
Throws:
java.io.IOException

visit

public boolean visit(ExpressionVisitee e)
Specified by:
visit in interface ExpressionVisitor

append

public ValueWriter append(Value v)
                   throws java.io.IOException
Specified by:
append in interface ValueWriter
Throws:
java.io.IOException

append

public ValueWriter append(char c)
                   throws java.io.IOException
Specified by:
append in interface ValueWriter
Throws:
java.io.IOException

append

public ValueWriter append(java.lang.String s)
                   throws java.io.IOException
Specified by:
append in interface ValueWriter
Throws:
java.io.IOException

isInlinable

public boolean isInlinable(Value v)
Specified by:
isInlinable in interface ValueWriter

vectorLengthPrefixing

public boolean vectorLengthPrefixing()
Specified by:
vectorLengthPrefixing in interface ValueWriter

caseSensitive

public boolean caseSensitive()
Specified by:
caseSensitive in interface ValueWriter