org.apache.sshd.common.util
Class Buffer
java.lang.Object
org.apache.sshd.common.util.Buffer
public final class Buffer
- extends java.lang.Object
TODO Add javadoc
- Author:
- Apache MINA SSHD Project
|
Constructor Summary |
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)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DEFAULT_SIZE
public static final int DEFAULT_SIZE
- See Also:
- Constant Field Values
Buffer
public Buffer()
Buffer
public Buffer(int size)
Buffer
public Buffer(byte[] data)
Buffer
public Buffer(byte[] data,
boolean read)
Buffer
public Buffer(byte[] data,
int off,
int len)
Buffer
public Buffer(byte[] data,
int off,
int len,
boolean read)
toString
public java.lang.String toString()
- Overrides:
toString in class java.lang.Object
rpos
public int rpos()
rpos
public void rpos(int rpos)
wpos
public int wpos()
wpos
public void wpos(int wpos)
available
public int available()
array
public byte[] array()
compact
public void compact()
getCompactData
public byte[] getCompactData()
clear
public void clear()
printHex
public java.lang.String printHex()
getByte
public byte getByte()
getInt
public int getInt()
getUInt
public long getUInt()
getLong
public long getLong()
getBoolean
public boolean getBoolean()
getString
public java.lang.String getString()
getStringAsBytes
public byte[] getStringAsBytes()
getMPInt
public java.math.BigInteger getMPInt()
getMPIntAsBytes
public byte[] getMPIntAsBytes()
getBytes
public byte[] getBytes()
getRawBytes
public void getRawBytes(byte[] buf)
getRawBytes
public void getRawBytes(byte[] buf,
int off,
int len)
getPublicKey
public java.security.PublicKey getPublicKey()
throws SshException
- Throws:
SshException
getRawPublicKey
public java.security.PublicKey getRawPublicKey()
throws SshException
- Throws:
SshException
getKeyPair
public java.security.KeyPair getKeyPair()
throws SshException
- Throws:
SshException
getCommand
public SshConstants.Message getCommand()
putByte
public void putByte(byte b)
putBuffer
public void putBuffer(Buffer buffer)
putBuffer
public void putBuffer(org.apache.mina.core.buffer.IoBuffer buffer)
putInt
public void putInt(long i)
- Writes 32 bits
- Parameters:
i -
putLong
public void putLong(long i)
- Writes 64 bits
- Parameters:
i -
putBoolean
public void putBoolean(boolean b)
putBytes
public void putBytes(byte[] b)
putBytes
public void putBytes(byte[] b,
int off,
int len)
putString
public void putString(java.lang.String string)
putString
public void putString(byte[] str)
putMPInt
public void putMPInt(java.math.BigInteger bi)
putMPInt
public void putMPInt(byte[] foo)
putRawBytes
public void putRawBytes(byte[] d)
putRawBytes
public void putRawBytes(byte[] d,
int off,
int len)
putPublicKey
public void putPublicKey(java.security.PublicKey key)
putRawPublicKey
public void putRawPublicKey(java.security.PublicKey key)
putKeyPair
public void putKeyPair(java.security.KeyPair key)
putCommand
public void putCommand(SshConstants.Message cmd)
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.