com.trilead.ssh2.packets

Class TypesWriter


public class TypesWriter
extends java.lang.Object

TypesWriter.

Constructor Summary

TypesWriter()

Method Summary

byte[]
getBytes()
void
getBytes(dst[] )
int
length()
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
writeMPInt(BigInteger b)
void
writeNameList(v[] )
void
writeString(String v)
void
writeString(String v, String charsetName)
void
writeString(byte[] buff, int off, int len)
void
writeUINT32(int val)
void
writeUINT32(int val, int off)
void
writeUINT64(long val)

Constructor Details

TypesWriter

public TypesWriter()

Method Details

getBytes

public byte[] getBytes()

getBytes

public void getBytes(dst[] )

length

public int length()

writeBoolean

public void writeBoolean(boolean v)

writeByte

public void writeByte(int v)

writeByte

public void writeByte(int v,
                      int off)

writeBytes

public void writeBytes(byte[] buff)

writeBytes

public void writeBytes(byte[] buff,
                       int off,
                       int len)

writeMPInt

public void writeMPInt(BigInteger b)

writeNameList

public void writeNameList(v[] )

writeString

public void writeString(String v)

writeString

public void writeString(String v,
                        String charsetName)
            throws UnsupportedEncodingException

writeString

public void writeString(byte[] buff,
                        int off,
                        int len)

writeUINT32

public void writeUINT32(int val)

writeUINT32

public void writeUINT32(int val,
                        int off)

writeUINT64

public void writeUINT64(long val)