net.schmizz.sshj.common
Class SSHPacket
java.lang.Object
net.schmizz.sshj.common.Buffer<SSHPacket>
net.schmizz.sshj.common.SSHPacket
public final class SSHPacket
- extends Buffer<SSHPacket>
Methods inherited from class net.schmizz.sshj.common.Buffer |
array, available, clear, compact, ensureAvailable, ensureCapacity, getCompactData, getNextPowerOf2, printHex, putBoolean, putBuffer, putByte, putBytes, putBytes, putMPInt, putPublicKey, putRawBytes, putRawBytes, putSensitiveString, putSignature, putString, putString, putString, putUInt32, putUInt64, readBoolean, readByte, readBytes, readMPInt, readPublicKey, readRawBytes, readRawBytes, readString, readStringAsBytes, readUInt32, readUInt32AsInt, readUInt64, rpos, rpos, toString, wpos, wpos |
SSHPacket
public SSHPacket()
SSHPacket
public SSHPacket(int size)
SSHPacket
public SSHPacket(byte[] data)
SSHPacket
public SSHPacket(Message msg)
- Constructs new buffer for the specified SSH packet and reserves the needed space (5 bytes) for the packet
header.
- Parameters:
msg
- the SSH command
SSHPacket
public SSHPacket(SSHPacket p)
readMessageID
public Message readMessageID()
throws Buffer.BufferException
- Reads an SSH byte and returns it as
Message
- Returns:
- the message identifier
- Throws:
Buffer.BufferException
putMessageID
public SSHPacket putMessageID(Message msg)
- Writes a byte indicating the SSH message identifier
- Parameters:
msg
- the identifier as a Message
type
- Returns:
- this
Copyright © 2009-2012. All Rights Reserved.