GeezerVison is showing docs.oracle.com — OutputStream (Java Platform SE 8 )
Java™ Platform Standard Ed. 8
compact1, compact2, compact3
java.io
Class OutputStream
-
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods
| Modifier and Type |
Method |
Description |
void |
close() |
Closes this output stream and releases any system resources
associated with this stream.
|
void |
flush() |
Flushes this output stream and forces any buffered output bytes
to be written out.
|
void |
write(byte[] b) |
Writes b.length bytes from the specified byte array
to this output stream.
|
void |
write(byte[] b,
int off,
int len) |
Writes len bytes from the specified byte array
starting at offset off to this output stream.
|
abstract void |
write(int b) |
Writes the specified byte to this output stream.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
OutputStream
public OutputStream()
-
Method Detail
-
write
public void write(byte[] b)
throws IOException
Writes b.length bytes from the specified byte array
to this output stream. The general contract for write(b)
is that it should have exactly the same effect as the call
write(b, 0, b.length).
- Parameters:
b - the data.
- Throws:
IOException - if an I/O error occurs.
- See Also:
write(byte[], int, int)
Java™ Platform Standard Ed. 8
Submit a bug or feature For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
|