Package com.sshtools.common.ssh
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
-
Field Summary
Fields inherited from class java.io.ByteArrayOutputStream
buf, count -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidfinish()intposition()voidreset()intsetPosition(int pos) Methods inherited from class com.sshtools.common.util.ByteArrayWriter
array, dispose, encodeInt, encodeInt, encodeInt, encodeInt, encodeString, move, silentClose, stripLeadingZeros, writeBigInteger, writeBinaryString, writeBinaryString, writeBoolean, writeInt, writeInt, writeMPINT, writeShort, writeString, writeString, writeUINT32, writeUINT64, writeUINT64Methods inherited from class java.io.ByteArrayOutputStream
close, size, toByteArray, toString, toString, toString, toString, write, write, writeBytes, writeToMethods inherited from class java.io.OutputStream
flush, nullOutputStream, write
-
Constructor Details
-
Packet
- Throws:
IOException
-
Packet
- Throws:
IOException
-
-
Method Details
-
setPosition
public int setPosition(int pos) -
position
public int position() -
finish
public void finish() -
reset
public void reset()- Overrides:
resetin classByteArrayOutputStream
-