Class PacketBuffer

java.lang.Object
org.apache.sshd.common.util.buffer.Buffer
org.apache.sshd.common.util.buffer.ByteArrayBuffer
org.apache.sshd.common.session.helpers.PacketBuffer
All Implemented Interfaces:
org.apache.sshd.common.util.Readable

public class PacketBuffer extends org.apache.sshd.common.util.buffer.ByteArrayBuffer
A ByteArrayBuffer that will be prepared with the SSH header (5 bytes).
  • Field Summary

    Fields inherited from class org.apache.sshd.common.util.buffer.ByteArrayBuffer

    DEFAULT_SIZE

    Fields inherited from class org.apache.sshd.common.util.buffer.Buffer

    workBuf
  • Constructor Summary

    Constructors
    Constructor
    Description
     
    PacketBuffer(byte[] buf, boolean readOnly)
     
  • Method Summary

    Methods inherited from class org.apache.sshd.common.util.buffer.ByteArrayBuffer

    array, available, capacity, clear, compact, copyRawBytes, ensureCapacity, getByte, getBytesConsumed, getBytesConsumed, getCompactClone, getCompactClone, getInt, getRawBytes, getString, getUInt, putBuffer, putBuffer, putByte, putBytes, putInt, putRawBytes, putUInt, rawByte, rawUInt, rpos, rpos, size, wpos, wpos

    Methods inherited from class org.apache.sshd.common.util.buffer.Buffer

    clear, dumpHex, dumpHex, ensureAvailable, ensureCapacity, extractEC, getAvailableStrings, getAvailableStrings, getBoolean, getBytes, getCertificateOptions, getCertificateOptions, getCompactData, getKeyPair, getLong, getMPInt, getMPIntAsBytes, getNameList, getNameList, getNameList, getNameList, getPublicKey, getPublicKey, getRawBytes, getRawPublicKey, getRawPublicKey, getShort, getString, getStringList, getStringList, getStringList, getStringList, getUByte, getUShort, isValidMessageStructure, isValidMessageStructure, putAndWipeBytes, putAndWipeBytes, putAndWipeChars, putAndWipeChars, putAndWipeChars, putAndWipeChars, putBoolean, putBuffer, putBufferedData, putBytes, putCertificateOptions, putCertificateOptions, putChars, putChars, putChars, putChars, putKeyPair, putLong, putMPInt, putMPInt, putNameList, putNameList, putNameList, putNameList, putOptionalBufferedData, putPublicKey, putRawBytes, putRawPublicKey, putRawPublicKeyBytes, putShort, putString, putString, putStringList, putStringList, toHex, toString

    Methods inherited from class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • PacketBuffer

      public PacketBuffer()
    • PacketBuffer

      public PacketBuffer(byte[] buf, boolean readOnly)