|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.io.OutputStream
|
+--com.ibm.wbi.util.ByteBridge
A store that can act as a middle man between streaming output and reading that input. The input will block appropriately until data is available. The data inside the bridge is not discarded until the ByteBridge itself is discarded.
| Constructor Summary | |
ByteBridge()
Constructs a new empty ByteBridge to stream data. |
|
| Method Summary | |
void |
close()
Close the data buffer to writing. |
void |
flush()
Flush the output stream to the input stream reader. |
java.io.InputStream |
getReader()
Get the streamed data reader. |
int |
getSize()
Get the size of the buffer. |
java.io.OutputStream |
getWriter()
Get the streamed data writer. |
protected boolean |
isDone()
Determine if the writer is complete. |
void |
write(byte[] bytes)
Write an array of bytes to the output stream. |
void |
write(byte[] bytes,
int offset,
int length)
Write a portion of an array of bytes to the output stream. |
void |
write(int byt)
Write a byte to the output stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ByteBridge()
| Method Detail |
public java.io.InputStream getReader()
public java.io.OutputStream getWriter()
public void close()
throws java.io.IOException
close in class java.io.OutputStreamjava.io.IOException - If an error occurs.
public void flush()
throws java.io.IOException
flush in class java.io.OutputStreamjava.io.IOException - If an error occurs.public void write(int byt)
write in class java.io.OutputStreambyt - The byte.public void write(byte[] bytes)
write in class java.io.OutputStreambytes - The byte array.
public void write(byte[] bytes,
int offset,
int length)
write in class java.io.OutputStreambytes - The byte array.offset - The index in the array to start.length - The amount of bytes from the offset to write.public int getSize()
protected boolean isDone()
true if write has called close().
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||