public interface ObjectOutput extends DataOutput, AutoCloseable
InputStream,
ObjectOutputStream,
ObjectInputStream| Modifier and Type | Method and 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.
|
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTFvoid writeObject(Object obj) throws IOException
IOException - Any of the usual Input/Output related exceptions.obj - the object to be writtenvoid write(int b)
throws IOException
write in interface DataOutputIOException - If an I/O error has occurred.b - the bytevoid write(byte[] b)
throws IOException
write in interface DataOutputIOException - If an I/O error has occurred.b - the data to be writtenvoid write(byte[] b,
int off,
int len)
throws IOException
write in interface DataOutputIOException - If an I/O error has occurred.b - the data to be writtenoff - the start offset in the datalen - the number of bytes that are writtenvoid flush()
throws IOException
IOException - If an I/O error has occurred.void close()
throws IOException
close in interface AutoCloseableIOException - If an I/O error has occurred.aicas GmbH, Karlsruhe, Germany —www.aicas.com
Copyright © 2001-2024 aicas GmbH. All Rights Reserved.