com.mindbright.ssh2
public class SSH2DataBuffer extends java.lang.Object
SSH2TransportPDU
).Modifier and Type | Field and Description |
---|---|
static int |
BOOLEAN_FALSE |
static int |
BOOLEAN_TRUE |
protected byte[] |
data |
protected int |
rPos |
protected int |
wPos |
Modifier | Constructor and Description |
---|---|
protected |
SSH2DataBuffer() |
|
SSH2DataBuffer(int bufSize) |
Modifier and Type | Method and Description |
---|---|
byte[] |
getData() |
int |
getMaxReadSize() |
int |
getMaxSize() |
int |
getMaxWriteSize() |
int |
getRPos() |
int |
getWPos() |
java.math.BigInteger |
readBigInt() |
java.math.BigInteger |
readBigIntBits() |
boolean |
readBoolean() |
int |
readByte() |
int |
readInt() |
java.lang.String |
readJavaString() |
long |
readLong() |
void |
readRaw(byte[] raw,
int off,
int len) |
byte[] |
readRaw(int len) |
byte[] |
readRestRaw() |
byte[] |
readString() |
int |
readString(byte[] str,
int off) |
long |
readUInt() |
void |
reset() |
void |
resize(int newsize) |
void |
setData(byte[] data) |
void |
setRPos(int rPos) |
void |
setWPos(int wPos) |
void |
writeBigInt(java.math.BigInteger bi) |
void |
writeBigIntBits(java.math.BigInteger bi) |
void |
writeBoolean(boolean b) |
void |
writeByte(int b) |
void |
writeInt(int i) |
void |
writeInt(long i) |
void |
writeLong(long l) |
void |
writeRaw(byte[] raw) |
void |
writeRaw(byte[] raw,
int off,
int len) |
void |
writeString(byte[] str) |
void |
writeString(byte[] str,
int off,
int len) |
void |
writeString(java.lang.String str) |
void |
writeUTF8String(java.lang.String str) |
public static final int BOOLEAN_TRUE
public static final int BOOLEAN_FALSE
protected byte[] data
protected int rPos
protected int wPos
protected SSH2DataBuffer()
public SSH2DataBuffer(int bufSize)
public final void resize(int newsize)
public final void reset()
public final int getMaxSize()
public final byte[] getData()
public final void setData(byte[] data)
public final void setWPos(int wPos)
public final int getWPos()
public final void setRPos(int rPos)
public final int getRPos()
public final int getMaxReadSize()
public final int getMaxWriteSize()
public final int readByte()
public void writeByte(int b)
public final boolean readBoolean()
public final void writeBoolean(boolean b)
public final int readInt()
public final long readUInt()
public final void writeInt(int i)
public final void writeInt(long i)
public final long readLong()
public final void writeLong(long l)
public final java.math.BigInteger readBigInt()
public final java.math.BigInteger readBigIntBits()
public final void writeBigInt(java.math.BigInteger bi)
public final void writeBigIntBits(java.math.BigInteger bi)
public final java.lang.String readJavaString()
public final byte[] readString()
public final int readString(byte[] str, int off)
public final void writeString(java.lang.String str)
public final void writeString(byte[] str)
public void writeString(byte[] str, int off, int len)
public final void writeUTF8String(java.lang.String str)
public final byte[] readRestRaw()
public final byte[] readRaw(int len)
public final void readRaw(byte[] raw, int off, int len)
public final void writeRaw(byte[] raw)
public void writeRaw(byte[] raw, int off, int len)