|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--jsdsi.sexp.Sexp | +--jsdsi.sexp.SexpString
A byte string with an optional display hint.
Sexp
,
Serialized FormField Summary |
Fields inherited from class jsdsi.sexp.Sexp |
base64Digit, hexDigit |
Constructor Summary | |
(package private) |
SexpString()
|
|
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 | |
(package private) int |
getReadableLenImpl()
Returns the length of this S-expression as if it were printed on one line. |
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, getReadableLen, isBase64Digit, isDecimalDigit, isHexDigit, isTokenChar, isWhiteSpace, writeBase64, writeBase64, writeHex, writeHex, writeTransport |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
SexpString()
public SexpString(byte[] d, byte[] c)
d
- the display hintc
- the content of the string.public SexpString(java.lang.String c)
c
- the content of the string.public SexpString(java.lang.String d, java.lang.String c)
d
- the display hintc
- the content of the string.public SexpString(byte[] c)
c
- the content of the string.public SexpString(java.lang.String d, byte[] c)
d
- the display hintc
- the content of the string.Method Detail |
public java.lang.String toString()
toString
in class java.lang.Object
public byte[] toByteArray()
public void writeCanonical(java.io.OutputStream out) throws java.io.IOException
Sexp
writeCanonical
in class Sexp
java.io.IOException
public void writeReadable(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
Sexp
writeReadable
in class Sexp
offset
- spaces indented from leftwidth
- total width of window, in characterslast
- spaces reserved on right (e.g., for closing parens)
java.io.IOException
int getReadableLenImpl()
Sexp
getReadableLenImpl
in class Sexp
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |