com.maverick.ssh
Class Packet

java.lang.Object
  extended by java.io.OutputStream
      extended by java.io.ByteArrayOutputStream
          extended by com.maverick.util.ByteArrayWriter
              extended by com.maverick.ssh.Packet
All Implemented Interfaces:
java.io.Closeable, java.io.Flushable

public class Packet
extends com.maverick.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
Packet()
           
Packet(int size)
           
 
Method Summary
 void finish()
           
 int position()
           
 void reset()
           
 int setPosition(int pos)
           
 
Methods inherited from class com.maverick.util.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
Throws:
java.io.IOException

Packet

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

setPosition

public int setPosition(int pos)

position

public int position()

finish

public void finish()

reset

public void reset()
Overrides:
reset in class java.io.ByteArrayOutputStream


Copyright © 2003-2008 SSHTools LTD. All Rights Reserved.