ObjectOutput (Java SE 26 & JDK 26)
- All Superinterfaces:
AutoCloseable, DataOutput
- All Known Implementing Classes:
ObjectOutputStream
-
Method Summary
voidclose()voidflush()voidwrite(byte[] b) Writes an array of bytes.
voidwrite(byte[] b, int off, int len) Writes a sub array of bytes.
voidwrite(int b) voidWrite an object to the underlying storage or stream.
Methods declared in interface DataOutput
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFvoidWrites a
booleanvalue to this output stream.voidWrites to the output stream the eight low-order bits of the argument
v.voidWrites a string to the output stream.
voidWrites a
charvalue, which is comprised of two bytes, to the output stream.voidWrites every character in the string
s, to the output stream, in order, two bytes per character.voidWrites a
doublevalue, which is comprised of eight bytes, to the output stream.voidWrites a
floatvalue, which is comprised of four bytes, to the output stream.voidWrites an
intvalue, which is comprised of four bytes, to the output stream.voidWrites a
longvalue, which is comprised of eight bytes, to the output stream.voidWrites two bytes to the output stream to represent the value of the argument.
voidWrites two bytes of length information to the output stream, followed by the modified UTF-8 representation of every character in the string
s.
-
Method Details
-
writeObject
-
write
-
write
-
write
-
flush
-
close
-