Package java.io
Class PipedOutputStream
void write(byte[] b, int off, int len)
Overrides:
Throws:
void write(int b)
Overrides:
Throws:
_INSERT_METHOD_SIGNATURE_HERE_
Description:
write(byte[] b, int off, int len) method:
This method writes len bytes from the specified byte array starting at offset off to this piped output stream. If a thread was reading data bytes from the connected piped input stream, but the thread is no longer alive, then an IOException is thrown.
write(int b) method:
This method writes the specified byte to the piped output stream. If a thread was reading data byte from the connected piped input stream, but the thread is no longer alive, then an IOException is thrown.
Example
PipedOutputStream pos = new PipedOutputStream();
byte[] b = {10,20};
pos.write(b, 0, 2);
The example above writes the byte array to the piped output stream.