com.maverick.ssh
Class Packet

java.lang.Object
  extended byjava.io.OutputStream
      extended byjava.io.ByteArrayOutputStream
          extended bycom.maverick.crypto.io.ByteArrayWriter
              extended bycom.maverick.ssh.Packet

public class Packet
extends com.maverick.crypto.io.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
Packet()
           
Packet(int size)
           
 
Method Summary
 void finish()
           
 int position()
           
 void reset()
           
 int setPosition(int pos)
           
 
Methods inherited from class com.maverick.crypto.io.ByteArrayWriter
array, encodeInt, encodeInt, move, writeBigInteger, writeBinaryString, writeBinaryString, writeBoolean, writeInt, writeInt, writeMPINT, writeShort, writeString, writeString, writeUINT32, writeUINT64, writeUINT64
 
Methods inherited from class java.io.ByteArrayOutputStream
close, size, toByteArray, toString, toString, toString, write, write, writeTo
 
Methods inherited from class java.io.OutputStream
flush, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Packet

public Packet()
       throws java.io.IOException

Packet

public Packet(int size)
       throws java.io.IOException
Method Detail

setPosition

public int setPosition(int pos)

position

public int position()

finish

public void finish()

reset

public void reset()


Copyright © 2003 3SP LTD. All Rights Reserved.