|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.io.OutputStream | +--hypercast.HCastOutputStream
This is the class used to send the byte array through stream manager
Constructor Summary | |
HCastOutputStream(hypercast.StreamManager sm,
byte[] streamID)
Constructs an HCastOutputStream with a
StreamManager and a stream id. |
Method Summary | |
void |
close()
remove the stream id from the hashtable. |
void |
flush()
Flushes this output stream and forces any buffered output bytes to be written out. |
byte |
getDeliveryMode()
Returns the current delivery mode for outgoing messages (DELIVERY_MODE_FLOOD, DELIVERY_MODE_MULTICAST, DELIVERY_MODE_UNICAST, DELIVERY_MODE_INVALID). |
int |
getStreamID()
Deprecated. use getStreamIdentifier |
int |
getStreamIdentifier()
|
boolean |
hasSent()
|
void |
reset()
reset the message sending flag |
void |
setBroadcast()
Sets the delivery mode for all outgoing messages to multicast. |
void |
setFlood()
Sets the delivery mode for all outgoing messages to flooding. |
void |
setHopLimit(short hopLimit)
Sets the hop-length field of outgoing messages to the specified value. |
void |
setSendFlood()
Deprecated. use setFlood |
void |
setSendToAll()
Deprecated. use setBroadcast |
void |
setSendToUnicast(hypercast.I_LogicalAddress Laddr)
Deprecated. use setUnicast |
void |
setUnicast(hypercast.I_LogicalAddress Laddr)
Sets the delivery mode for all outgoing messages to unicast with the specified logical address as destination. |
void |
write(byte b)
Writes one byte this output stream. |
void |
write(byte[] b)
Writes b.length bytes from the specified byte array to this output stream. |
void |
write(byte[] b,
int off,
int len)
Writes len bytes from the specified byte array starting at offset off to this output stream. |
void |
write(int b)
Writes one byte (passed as a integer) to this output stream. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HCastOutputStream(hypercast.StreamManager sm, byte[] streamID)
HCastOutputStream
with a
StreamManager
and a stream id.
sm
- StreamManagerstreamID
- Stream idMethod Detail |
public void flush() throws java.io.IOException
flush
in class java.io.OutputStream
java.io.IOException
public void close() throws java.io.IOException
close
in class java.io.OutputStream
java.io.IOException
public void write(byte[] b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(int b) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public void write(byte b) throws java.io.IOException
java.io.IOException
public void write(byte[] b, int off, int len) throws java.io.IOException
write
in class java.io.OutputStream
java.io.IOException
public int getStreamID()
public int getStreamIdentifier()
public void setSendToUnicast(hypercast.I_LogicalAddress Laddr)
public void setUnicast(hypercast.I_LogicalAddress Laddr)
public void setSendToAll()
public void setBroadcast()
public void setSendFlood()
public void setFlood()
public byte getDeliveryMode()
public void setHopLimit(short hopLimit)
public boolean hasSent()
public void reset()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |