|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.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(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(DatagramPacket packet)
Method Detail |
---|
public void write(int b) throws IOException
write
in class OutputStream
IOException
public void write(byte[] abSrc, int ofSrc, int cbCopy) throws IOException
write
in class OutputStream
IOException
public void flush() throws IOException
flush
in interface Flushable
flush
in class OutputStream
IOException
public void close()
close
in interface Closeable
close
in class OutputStream
public void reset()
|
CoherenceTM v3.3 Copyright© 2000-2007 by Oracle Corporation |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |