|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.inet.ssh.types.SshString
public final class SshString
SSH2 string. Strings are allowed to contain arbitrary binary data, including null characters and 8-bit characters. They are stored as a uint32 containing its length (number of bytes that follow) and zero (= empty string) or more bytes that are the value of the string. Terminating null characters are not used.
Constructor Summary | |
---|---|
SshString()
|
Method Summary | |
---|---|
static byte[] |
readValue(java.io.InputStream in)
Reads a value from the specified stream. |
static java.lang.String |
readValue(java.io.InputStream in,
java.lang.String charset)
|
static void |
writeValue(byte[] value,
int off,
int len,
java.io.OutputStream out)
Writes the specified value to the stream. |
static void |
writeValue(byte[] value,
java.io.OutputStream out)
Writes the specified value to the stream. |
static void |
writeValue(java.lang.String value,
java.lang.String charset,
java.io.OutputStream out)
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SshString()
Method Detail |
---|
public static byte[] readValue(java.io.InputStream in) throws java.io.IOException
in
- input stream
java.io.IOException
- if a error occurspublic static java.lang.String readValue(java.io.InputStream in, java.lang.String charset) throws java.io.IOException
java.io.IOException
public static void writeValue(byte[] value, java.io.OutputStream out) throws java.io.IOException
value
- value to writeout
- output stream
java.io.IOException
- if an error occurspublic static void writeValue(byte[] value, int off, int len, java.io.OutputStream out) throws java.io.IOException
value
- value to writeoff
- value offsetlen
- value lengthout
- output stream
java.io.IOException
- if an error occurspublic static void writeValue(java.lang.String value, java.lang.String charset, java.io.OutputStream out) throws java.io.IOException
java.io.IOException
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |