public final class Buffer extends java.lang.Object implements Readable
| Modifier and Type | Class and Description |
|---|---|
static class |
Buffer.BufferException |
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SIZE |
static int |
MAX_LEN |
| Constructor and Description |
|---|
Buffer() |
Buffer(byte[] data) |
Buffer(byte[] data,
boolean read) |
Buffer(byte[] data,
int off,
int len) |
Buffer(byte[] data,
int off,
int len,
boolean read) |
Buffer(int size) |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
array() |
int |
available() |
void |
clear() |
void |
compact() |
boolean |
getBoolean() |
byte |
getByte() |
byte[] |
getBytes() |
byte[] |
getCompactData() |
int |
getInt() |
java.security.KeyPair |
getKeyPair() |
long |
getLong() |
java.math.BigInteger |
getMPInt() |
byte[] |
getMPIntAsBytes() |
java.security.PublicKey |
getPublicKey() |
void |
getRawBytes(byte[] buf) |
void |
getRawBytes(byte[] buf,
int off,
int len) |
java.security.PublicKey |
getRawPublicKey() |
java.lang.String |
getString() |
byte[] |
getStringAsBytes() |
long |
getUInt() |
java.lang.String |
printHex() |
void |
putBoolean(boolean b) |
void |
putBuffer(Readable buffer) |
void |
putByte(byte b) |
void |
putBytes(byte[] b) |
void |
putBytes(byte[] b,
int off,
int len) |
void |
putInt(long i)
Writes 32 bits
|
void |
putKeyPair(java.security.KeyPair key) |
void |
putLong(long i)
Writes 64 bits
|
void |
putMPInt(java.math.BigInteger bi) |
void |
putMPInt(byte[] foo) |
void |
putPublicKey(java.security.PublicKey key) |
void |
putRawBytes(byte[] d) |
void |
putRawBytes(byte[] d,
int off,
int len) |
void |
putRawPublicKey(java.security.PublicKey key) |
void |
putString(byte[] str) |
void |
putString(java.lang.String string) |
int |
rpos() |
void |
rpos(int rpos) |
java.lang.String |
toString() |
int |
wpos() |
void |
wpos(int wpos) |
public static final int DEFAULT_SIZE
public static final int MAX_LEN
public Buffer()
public Buffer(int size)
public Buffer(byte[] data)
public Buffer(byte[] data,
boolean read)
public Buffer(byte[] data,
int off,
int len)
public Buffer(byte[] data,
int off,
int len,
boolean read)
public java.lang.String toString()
toString in class java.lang.Objectpublic int rpos()
public void rpos(int rpos)
public int wpos()
public void wpos(int wpos)
public byte[] array()
public void compact()
public byte[] getCompactData()
public void clear()
public java.lang.String printHex()
public byte getByte()
public int getInt()
public long getUInt()
public long getLong()
public boolean getBoolean()
public java.lang.String getString()
public byte[] getStringAsBytes()
public java.math.BigInteger getMPInt()
public byte[] getMPIntAsBytes()
public byte[] getBytes()
public void getRawBytes(byte[] buf)
public void getRawBytes(byte[] buf,
int off,
int len)
getRawBytes in interface Readablepublic java.security.PublicKey getPublicKey()
throws SshException
SshExceptionpublic java.security.PublicKey getRawPublicKey()
throws SshException
SshExceptionpublic java.security.KeyPair getKeyPair()
throws SshException
SshExceptionpublic void putByte(byte b)
public void putBuffer(Readable buffer)
public void putInt(long i)
i - public void putLong(long i)
i - public void putBoolean(boolean b)
public void putBytes(byte[] b)
public void putBytes(byte[] b,
int off,
int len)
public void putString(java.lang.String string)
public void putString(byte[] str)
public void putMPInt(java.math.BigInteger bi)
public void putMPInt(byte[] foo)
public void putRawBytes(byte[] d)
public void putRawBytes(byte[] d,
int off,
int len)
public void putPublicKey(java.security.PublicKey key)
public void putRawPublicKey(java.security.PublicKey key)
public void putKeyPair(java.security.KeyPair key)
Copyright © 2008-2014 The Apache Software Foundation. All Rights Reserved.