Class Packet

java.lang.Object
java.io.OutputStream
java.io.ByteArrayOutputStream
com.sshtools.common.util.ByteArrayWriter
com.sshtools.common.ssh.Packet
All Implemented Interfaces:
Closeable, Flushable, AutoCloseable

public class Packet extends com.sshtools.common.util.ByteArrayWriter
A utility class that provides the SSH layers with the ability to dynamically write an SSH packet.
Author:
Lee David Painter
  • Constructor Details

  • Method Details

    • setPosition

      public int setPosition(int pos)
    • position

      public int position()
    • finish

      public void finish()
    • reset

      public void reset()
      Overrides:
      reset in class ByteArrayOutputStream