Java™ Platform
Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
compact1, compact2, compact3
java.io
Interface ObjectOutput
-
-
Method Summary
All Methods Instance Methods Abstract Methods
| Modifier and Type |
Method |
Description |
void |
close() |
Closes the stream.
|
void |
flush() |
Flushes the stream.
|
void |
write(byte[] b) |
Writes an array of bytes.
|
void |
write(byte[] b,
int off,
int len) |
Writes a sub array of bytes.
|
void |
write(int b) |
Writes a byte.
|
void |
writeObject(Object obj) |
Write an object to the underlying storage or stream.
|
-
Methods inherited from interface java.io.DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
-
-
Method Detail
-
write
void write(byte[] b,
int off,
int len)
throws IOException
Writes a sub array of bytes.
- Specified by:
write in interface DataOutput
- Parameters:
b - the data to be written
off - the start offset in the data
len - the number of bytes that are written
- Throws:
IOException - If an I/O error has occurred.
Java™ Platform
Standard Ed. 8
- Summary:
- Nested |
- Field |
- Constr |
- Method
- Detail:
- Field |
- Constr |
- Method
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.