| |
|
| java.lang.Object java.io.OutputStream
OutputStream | abstract public class OutputStream implements Closeable,Flushable(Code) | | OutputStream is an abstract class for all byte output streams. It provides
basic method implementations for writing bytes to a stream.
See Also: InputStream |
Constructor Summary | |
public | OutputStream() Default constructor. |
Method Summary | |
public void | close() Close this OutputStream. | public void | flush() Flush this OutputStream. | public void | write(byte buffer) Writes the entire contents of the byte array buffer to
this OutputStream. | public void | write(byte buffer, int offset, int count) Writes count bytes from the byte array
buffer starting at offset to this
OutputStream. | abstract public void | write(int oneByte) Writes the specified byte oneByte to this OutputStream. |
OutputStream | public OutputStream()(Code) | | Default constructor.
|
close | public void close() throws IOException(Code) | | Close this OutputStream. Concrete implementations of this class should
free any resources during close. This implementation does nothing.
throws: IOException - If an error occurs attempting to close this OutputStream. |
flush | public void flush() throws IOException(Code) | | Flush this OutputStream. Concrete implementations of this class should
ensure any pending writes to the underlying stream are written out when
this method is envoked. This implementation does nothing.
throws: IOException - If an error occurs attempting to flush this OutputStream. |
write | public void write(byte buffer) throws IOException(Code) | | Writes the entire contents of the byte array buffer to
this OutputStream.
Parameters: buffer - the buffer to be written throws: IOException - If an error occurs attempting to write to this OutputStream. |
write | public void write(byte buffer, int offset, int count) throws IOException(Code) | | Writes count bytes from the byte array
buffer starting at offset to this
OutputStream.
Parameters: buffer - the buffer to be written Parameters: offset - offset in buffer to get bytes Parameters: count - number of bytes in buffer to write throws: IOException - If an error occurs attempting to write to this OutputStream. throws: IndexOutOfBoundsException - If offset or count are outside of bounds. |
write | abstract public void write(int oneByte) throws IOException(Code) | | Writes the specified byte oneByte to this OutputStream.
Only the low order byte of oneByte is written.
Parameters: oneByte - the byte to be written throws: IOException - If an error occurs attempting to write to this OutputStream. |
|
|
|