|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.stepsoncats.gublists.FlexPipe | +--com.stepsoncats.gublists.ByteArrayPipe
A ByteArrayPipe is a FlexPipe designed for sending byte arrays between threads.
Constructor Summary | |
ByteArrayPipe()
|
Method Summary | |
byte[] |
poll()
Read an array of bytes sent by some other thread via this FlexPipe, if any. |
byte[] |
read()
Read an array of bytes sent by some other thread via this FlexPipe. |
void |
write(byte[] byteArray)
Send an arbitrary array of bytes to another thread via this FlexPipe. |
Methods inherited from class com.stepsoncats.gublists.FlexPipe |
attach, detach, pollForItem, readItem, writeItem |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public ByteArrayPipe()
Method Detail |
public void write(byte[] byteArray)
byteArray
- The array of bytes to send.public byte[] read() throws java.lang.InterruptedException
public byte[] poll() throws java.lang.InterruptedException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |