|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectjsdsi.sexp.Sexp
jsdsi.sexp.SexpString
A byte string with an optional display hint.
Sexp,
Serialized Form| Field Summary |
| Fields inherited from class jsdsi.sexp.Sexp |
base64Digit, hexDigit |
| Constructor Summary | |
SexpString(byte[] c)
Creates a new SexpString with no display-hint. |
|
SexpString(byte[] d,
byte[] c)
Creates a new SexpString with the given display-hint
and content. |
|
SexpString(java.lang.String c)
Creates a new SexpString with no display-hint. |
|
SexpString(java.lang.String d,
byte[] c)
Creates a new SexpString with the given display-hint
and content. |
|
SexpString(java.lang.String d,
java.lang.String c)
Creates a new SexpString with the given display-hint
and content. |
|
| Method Summary | |
byte[] |
toByteArray()
Returns the content of this string as a byte array. |
java.lang.String |
toString()
Returns the content of this string as a String. |
void |
writeCanonical(java.io.OutputStream out)
Writes this S-expression to a byte stream in canonical form. |
void |
writeReadable(java.io.Writer out,
int offset,
int width,
int last)
Writes this S-expression to a character stream in readable form. |
| Methods inherited from class jsdsi.sexp.Sexp |
decodeString, encodeString, getEncoding, getReadableLen, isBase64Digit, isDecimalDigit, isHexDigit, isTokenChar, isWhiteSpace, writeTransport |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SexpString(byte[] d,
byte[] c)
SexpString with the given display-hint
and content.
d - the display hint.c - the content of the string.public SexpString(java.lang.String c)
SexpString with no display-hint.
c - the content of the string.
public SexpString(java.lang.String d,
java.lang.String c)
SexpString with the given display-hint
and content.
d - the display hint.c - the content of the string.public SexpString(byte[] c)
SexpString with no display-hint.
c - the content of the string.
public SexpString(java.lang.String d,
byte[] c)
SexpString with the given display-hint
and content.
d - the display hintc - the content of the string.| Method Detail |
public java.lang.String toString()
String.
String.public byte[] toByteArray()
public void writeCanonical(java.io.OutputStream out)
throws java.io.IOException
Sexp
writeCanonical in class Sexpjava.io.IOException
public void writeReadable(java.io.Writer out,
int offset,
int width,
int last)
throws java.io.IOException
Sexp
writeReadable in class Sexpoffset - spaces indented from left.width - total width of window, in characters.last - spaces reserved on right (e.g., for closing parens).
java.io.IOException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||