AutoCloseable
, DataOutput
ObjectOutputStream
ObjectOutput extends the DataOutput interface to include writing of objects. DataOutput includes methods for output of primitive types, ObjectOutput extends that interface to include objects, arrays, and Strings.
void
void
void
Writes an array of bytes.
void
write(byte[] b, int off, int len)
Writes a sub array of bytes.
void
void
Write an object to the underlying storage or stream.
Methods declared in interface java.io.DataOutputwriteBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
Write an object to the underlying storage or stream. The class that implements this interface defines how the object is written.
obj
- the object to be written
IOException
- Any of the usual Input/Output related exceptions.
Writes a byte. This method will block until the byte is actually written.
write
in interface DataOutput
b
- the byte
IOException
- If an I/O error has occurred.
Writes an array of bytes. This method will block until the bytes are actually written.
write
in interface DataOutput
b
- the data to be written
IOException
- If an I/O error has occurred.
throws
IOExceptionWrites a sub array of bytes.
write
in interface DataOutput
b
- the data to be written
off
- the start offset in the data
len
- the number of bytes that are written
IOException
- If an I/O error has occurred.
Flushes the stream. This will write any buffered output bytes.
IOException
- If an I/O error has occurred.
Closes the stream. This method must be called to release any resources associated with the stream.
close
in interface AutoCloseable
IOException
- If an I/O error has occurred.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4