|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jsdsi.sexp.SimpleString
A simple string of data.
Constructor Summary | |
(package private) |
SimpleString(byte[] d)
Creates a new SimpleString. |
(package private) |
SimpleString(java.lang.String s)
Create a new SimpleString. |
Method Summary | |
(package private) boolean |
canBeHex()
|
(package private) boolean |
canBeQuoted()
|
(package private) boolean |
canBeQuotedImpl()
|
(package private) boolean |
canBeToken()
|
(package private) int |
getReadableLen()
|
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. |
(package private) void |
writeBase64(java.io.Writer out,
int offset,
int width,
int last)
|
void |
writeCanonical(java.io.OutputStream out)
Writes this string to a byte stream in canonical form. |
(package private) void |
writeHex(java.io.Writer out,
int offset,
int width,
int last)
|
(package private) void |
writeQuoted(java.io.Writer out,
int offset,
int width,
int last)
|
void |
writeReadable(java.io.Writer out,
int offset,
int width,
int last)
Writes this string to a character stream in readable form. |
(package private) void |
writeToken(java.io.Writer out,
int offset,
int width,
int last)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
SimpleString(byte[] d)
d
- the content of the stringSimpleString(java.lang.String s)
s
- the content of the stringMethod Detail |
public java.lang.String toString()
public byte[] toByteArray()
public void writeCanonical(java.io.OutputStream out) throws java.io.IOException
java.io.IOException
public void writeReadable(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
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
int getReadableLen()
boolean canBeToken()
boolean canBeQuoted()
boolean canBeQuotedImpl()
boolean canBeHex()
void writeToken(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
java.io.IOException
void writeQuoted(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
java.io.IOException
void writeHex(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
java.io.IOException
void writeBase64(java.io.Writer out, int offset, int width, int last) throws java.io.IOException
java.io.IOException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |