java.io.ObjectOutput |
Known Indirect Subclasses |
Defines an interface for classes that allow writing serialized objects.
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Closes the target stream.
| |||||||||||
Flushes the target stream.
| |||||||||||
Writes
count bytes from the byte array buffer starting at
position offset to the target stream.
| |||||||||||
Writes the entire contents of the byte array
buffer to the output
stream.
| |||||||||||
Writes a single byte to the target stream.
| |||||||||||
Writes the specified object
obj to the target stream.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
java.io.DataOutput
| |||||||||||
From interface
java.lang.AutoCloseable
|
Closes the target stream. Implementations of this method should free any resources used by the stream.
IOException | if an error occurs while closing the target stream. |
---|
Flushes the target stream. Implementations of this method should ensure that any pending writes are written out to the target stream.
IOException | if an error occurs while flushing the target stream. |
---|
Writes count
bytes from the byte array buffer
starting at
position offset
to the target stream. Blocks until all bytes are
written.
buffer | the buffer to write. |
---|---|
offset | the index of the first byte in buffer to write. |
count | the number of bytes from buffer to write to the target
stream. |
IOException | if an error occurs while writing to the target stream. |
---|
Writes the entire contents of the byte array buffer
to the output
stream. Blocks until all bytes are written.
buffer | the buffer to write. |
---|
IOException | if an error occurs while writing to the target stream. |
---|
Writes a single byte to the target stream. Only the least significant
byte of the integer value
is written to the stream. Blocks until
the byte is actually written.
value | the byte to write. |
---|
IOException | if an error occurs while writing to the target stream. |
---|
Writes the specified object obj
to the target stream.
obj | the object to write. |
---|
IOException | if an error occurs while writing to the target stream. |
---|