org.granite.gravity.udp
Class UdpOutputStream

java.lang.Object
  extended by java.io.OutputStream
      extended by org.granite.gravity.udp.UdpOutputStream
All Implemented Interfaces:
Closeable, Flushable

public class UdpOutputStream
extends OutputStream

Author:
Franck WOLFF

Constructor Summary
UdpOutputStream()
           
 
Method Summary
 byte[] buffer()
           
 void close()
           
 void flush()
           
 int size()
           
 void write(byte[] b, int off, int len)
           
 void write(int b)
           
 
Methods inherited from class java.io.OutputStream
write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UdpOutputStream

public UdpOutputStream()
Method Detail

write

public void write(int b)
           throws IOException
Specified by:
write in class OutputStream
Throws:
IOException

write

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

buffer

public byte[] buffer()

size

public int size()

flush

public void flush()
Specified by:
flush in interface Flushable
Overrides:
flush in class OutputStream

close

public void close()
Specified by:
close in interface Closeable
Overrides:
close in class OutputStream