|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object
java.io.OutputStream
com.tangosol.net.DatagramPacketOutputStream
public class DatagramPacketOutputStream
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.
Constructor Summary | |
---|---|
DatagramPacketOutputStream(java.net.DatagramPacket packet) |
Method Summary | |
---|---|
void |
close() Closes this output stream and releases any system resources associated with this stream. |
void |
flush() Flushes this output stream and forces any buffered output bytes to be written out. |
void |
reset() Reset the output stream back to the beginning of the buffer. |
void |
write(byte[] abSrc, int ofSrc, int cbCopy) Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b) Writes the specified byte to this output stream. |
Methods inherited from class java.io.OutputStream |
---|
write |
Constructor Detail |
---|
public DatagramPacketOutputStream(java.net.DatagramPacket packet)
Method Detail |
---|
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte[] abSrc, int ofSrc, int cbCopy) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void flush() throws java.io.IOException
flush
in interface java.io.Flushable
flush
in class java.io.OutputStream
java.io.IOException
public void close()
close
in interface java.io.Closeable
close
in class java.io.OutputStream
public void reset()
|
Oracle® Coherence Java API Reference Release 3.7.1.0 E22843-01 |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |