Package com.tangosol.net
Class DatagramPacketOutputStream
java.lang.Object
java.io.OutputStream
com.tangosol.net.DatagramPacketOutputStream
- All Implemented Interfaces:
 Closeable,Flushable,AutoCloseable
Provides an OutputStream on top of a DatagramPacket.
 
 The flush() method must be invoked prior to sending the DatagramPacket.
 The close() method must be invoked after sending the DatagramPacket; the
 OutputStream will remain open, but will have reset to the beginning of
 the packet buffer.
- Author:
 - cp 2001.01.05
 
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Closes this output stream and releases any system resources associated with this stream.voidflush()Flushes this output stream and forces any buffered output bytes to be written out.voidreset()Reset the output stream back to the beginning of the buffer.voidwrite(byte[] abSrc, int ofSrc, int cbCopy) Writes len bytes from the specified byte array starting at offset off to this output stream.voidwrite(int b) Writes the specified byte to this output stream.Methods inherited from class java.io.OutputStream
nullOutputStream, write 
- 
Constructor Details
- 
DatagramPacketOutputStream
 
 - 
 - 
Method Details
- 
write
Writes the specified byte to this output stream.- Specified by:
 writein classOutputStream- Throws:
 IOException
 - 
write
Writes len bytes from the specified byte array starting at offset off to this output stream.- Overrides:
 writein classOutputStream- Throws:
 IOException
 - 
flush
Flushes this output stream and forces any buffered output bytes to be written out.- Specified by:
 flushin interfaceFlushable- Overrides:
 flushin classOutputStream- Throws:
 IOException
 - 
close
public void close()Closes this output stream and releases any system resources associated with this stream.- Specified by:
 closein interfaceAutoCloseable- Specified by:
 closein interfaceCloseable- Overrides:
 closein classOutputStream
 - 
reset
public void reset()Reset the output stream back to the beginning of the buffer. 
 -