Package com.trilead.ssh2.packets
Class TypesWriter
java.lang.Object
com.trilead.ssh2.packets.TypesWriter
TypesWriter.
- Version:
- $Id: TypesWriter.java,v 1.2 2008/04/01 12:38:09 cplattne Exp $
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getBytes()
void
getBytes
(byte[] dst) int
length()
private void
resize
(int len) void
writeBoolean
(boolean v) void
writeByte
(int v) void
writeByte
(int v, int off) void
writeBytes
(byte[] buff) void
writeBytes
(byte[] buff, int off, int len) void
void
writeNameList
(String[] v) void
writeString
(byte[] buff, int off, int len) void
void
writeString
(String v, String charsetName) void
writeUINT32
(int val) void
writeUINT32
(int val, int off) void
writeUINT64
(long val)
-
Field Details
-
arr
byte[] arr -
pos
int pos
-
-
Constructor Details
-
TypesWriter
public TypesWriter()
-
-
Method Details
-
resize
private void resize(int len) -
length
public int length() -
getBytes
public byte[] getBytes() -
getBytes
public void getBytes(byte[] dst) -
writeUINT32
public void writeUINT32(int val, int off) -
writeUINT32
public void writeUINT32(int val) -
writeUINT64
public void writeUINT64(long val) -
writeBoolean
public void writeBoolean(boolean v) -
writeByte
public void writeByte(int v, int off) -
writeByte
public void writeByte(int v) -
writeMPInt
-
writeBytes
public void writeBytes(byte[] buff) -
writeBytes
public void writeBytes(byte[] buff, int off, int len) -
writeString
public void writeString(byte[] buff, int off, int len) -
writeString
-
writeString
- Throws:
UnsupportedEncodingException
-
writeNameList
-