|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjava.io.OutputStream
java.io.FilterOutputStream
jsdsi.sexp.SexpOutputStream
Writes serialized S-expressions to an underlying stream. Supports the canonical, transport, and readable S-expression encodings.
SexpInputStream| Field Summary |
| Fields inherited from class java.io.FilterOutputStream |
out |
| Constructor Summary | |
SexpOutputStream(java.io.OutputStream os)
Creates a new SexpOutputStream that writes to the given
stream. |
|
| Method Summary | |
SexpOutput |
toCanonical()
Returns a new SexpOutput object that writes S-expressions to this stream in canonical form. |
SexpOutput |
toReadable(int offset,
int width,
int last)
Returns a new SexpOutput object that writes S-expressions to this stream in readable form. |
SexpOutput |
toTransport()
Returns a new SexpOutput object that writes S-expressions to this stream in transport form. |
void |
writeCanonical(Sexp s)
Writes an S-expression to the stream in canonical form. |
void |
writeReadable(Sexp s,
int offset,
int width,
int last)
Writes an S-expression to the stream in readable form. |
void |
writeTransport(Sexp s)
Writes an S-expression to the stream in transport form. |
| Methods inherited from class java.io.FilterOutputStream |
close, flush, write, write, write |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SexpOutputStream(java.io.OutputStream os)
SexpOutputStream that writes to the given
stream.
| Method Detail |
public void writeReadable(Sexp s,
int offset,
int width,
int last)
throws java.io.IOException
s - the S-expression to write.offset - spaces indented from left.width - total width of window, in characters.last - spaces reserved on right (e.g., for closing parens).
java.io.IOException - if there is an IO error.
public void writeTransport(Sexp s)
throws java.io.IOException
s - the S-expression to write.
java.io.IOException - if there is an IO error.
public void writeCanonical(Sexp s)
throws java.io.IOException
s - the S-expression to write
java.io.IOException - if there is an IO error
public SexpOutput toReadable(int offset,
int width,
int last)
offset - spaces indented from left.width - total width of window, in characters.last - spaces reserved on right (e.g., for closing parens).public SexpOutput toCanonical()
public SexpOutput toTransport()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||