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