public
void close () throws
IOException
Overriding: java.io.OutputStream
Closes this piped output stream and releases any system resources
associated with this stream. This stream may no longer be used for
writing bytes.
Exceptions:
IOException | | if an I/O error occurs. |
public synchronized
void flush () throws
IOException
Overriding: java.io.OutputStream
Flushes this output stream and forces any buffered output bytes
to be written out.
This will notify any readers that bytes are waiting in the pipe.
Exceptions:
IOException | | if an I/O error occurs. |
public
void write (
int b) throws
IOException
Overriding: java.io.OutputStream
Writes the specified byte to the piped output stream.
Implements the write method of OutputStream.
Parameters:
b | | the byte to be written. |
Exceptions:
public
void write (
byte[] b,
int off,
int len) throws
IOException
Overriding: java.io.OutputStream
Writes len bytes from the specified byte array
starting at offset off to this piped output stream.
This method blocks until all the bytes are written to the output
stream.
Parameters:
b | | the data. |
off | | the start offset in the data. |
len | | the number of bytes to write. |
Exceptions: