|
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.SshWriter
public class SshWriter
Writes the basic SSH types to the underlayed output stream.
Constructor Summary | |
---|---|
SshWriter(java.io.OutputStream out,
boolean owner)
Creates a new writer instance. |
Method Summary | |
---|---|
void |
close()
Closes the current writer. |
void |
write(byte[] b)
Writes the byte array. |
void |
write(byte[] b,
int offset,
int length)
Writes the byte array. |
void |
writeBoolean(boolean val)
Writes a SSH boolean value. |
void |
writeByte(int val)
Writes a SSH byte value. |
void |
writeInt32(int val)
Writes a SSH int32 value. |
void |
writeInt64(long val)
Writes a SSH int64 value. |
void |
writeLine(java.lang.String val)
Writes the specified line with ending "\r\n" characters. |
void |
writeMpint(java.math.BigInteger val)
Writes a SSH mpint value. |
void |
writeNameList(java.lang.String[] val)
Writes a SSH name list. |
void |
writeString(byte[] val)
Writes a SSH string represented as a byte array. |
void |
writeString(byte[] val,
int offset,
int length)
Writes a SSH string represented as a byte array. |
void |
writeString(java.lang.String val)
Writes a SSH string. |
void |
writeUint32(long val)
Writes a SSH uint32 value. |
void |
writeUint64(java.math.BigInteger val)
Writes a SSH uint64 value. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SshWriter(java.io.OutputStream out, boolean owner)
out
- the underlayed output streamowner
- if true
the writer will close the underlayed
stream while its own closingMethod Detail |
---|
public void close()
public void writeBoolean(boolean val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeByte(int val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeUint32(long val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeInt32(int val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeUint64(java.math.BigInteger val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeInt64(long val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeString(java.lang.String val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeString(byte[] val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeString(byte[] val, int offset, int length) throws java.io.IOException
val
- the value to writeoffset
- the data offsetlength
- the data length
java.io.IOException
- if an I/O error occurspublic void writeMpint(java.math.BigInteger val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeNameList(java.lang.String[] val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void writeLine(java.lang.String val) throws java.io.IOException
val
- the value to write
java.io.IOException
- if an I/O error occurspublic void write(byte[] b) throws java.io.IOException
b
- the data to write
java.io.IOException
- if an I/O error occurspublic void write(byte[] b, int offset, int length) throws java.io.IOException
b
- the data to writeoffset
- the data offsetlength
- the data length
java.io.IOException
- if an I/O error occurs
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |