org.apache.geronimo.network.protocol
Class PacketOutputStream

java.lang.Object
  extended byjava.io.OutputStream
      extended byorg.apache.geronimo.network.protocol.PacketOutputStream

public class PacketOutputStream
extends OutputStream

Version:
$Revision: 1.2 $ $Date: 2004/03/20 20:39:11 $

Constructor Summary
PacketOutputStream(Protocol down)
           
PacketOutputStream(Protocol down, short packetSize)
           
 
Method Summary
 void close()
           
 void flush()
           
 short getPacketSize()
           
 void write(byte[] b)
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PacketOutputStream

public PacketOutputStream(Protocol down)

PacketOutputStream

public PacketOutputStream(Protocol down,
                          short packetSize)
Method Detail

getPacketSize

public short getPacketSize()

write

public void write(int b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b)
           throws IOException
Throws:
IOException

write

public void write(byte[] b,
                  int off,
                  int len)
           throws IOException
Throws:
IOException

flush

public void flush()
           throws IOException
Throws:
IOException

close

public void close()
           throws IOException
Throws:
IOException


Copyright © 2003-2005 Apache Software Foundation. All Rights Reserved.