ch.ethz.ssh2.packets

Class TypesReader


public class TypesReader
extends java.lang.Object

TypesReader.

Constructor Summary

TypesReader(byte[] arr)
TypesReader(byte[] arr, int off)
TypesReader(byte[] arr, int off, int len)

Method Summary

boolean
readBoolean()
int
readByte()
byte[]
readByteString()
void
readBytes(byte[] dst, int off, int len)
byte[]
readBytes(int len)
BigInteger
readMPINT()
String[]
readNameList()
String
readString()
String
readString(String charsetName)
int
readUINT32()
long
readUINT64()
int
remain()

Constructor Details

TypesReader

public TypesReader(byte[] arr)

TypesReader

public TypesReader(byte[] arr,
                   int off)

TypesReader

public TypesReader(byte[] arr,
                   int off,
                   int len)

Method Details

readBoolean

public boolean readBoolean()
            throws IOException

readByte

public int readByte()
            throws IOException

readByteString

public byte[] readByteString()
            throws IOException

readBytes

public void readBytes(byte[] dst,
                      int off,
                      int len)
            throws IOException

readBytes

public byte[] readBytes(int len)
            throws IOException

readMPINT

public BigInteger readMPINT()
            throws IOException

readNameList

public String[] readNameList()
            throws IOException

readString

public String readString()
            throws IOException

readString

public String readString(String charsetName)
            throws IOException

readUINT32

public int readUINT32()
            throws IOException

readUINT64

public long readUINT64()
            throws IOException

remain

public int remain()