public interface ObjectOutput
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.
InputStream
, ObjectOutputStream
, ObjectInputStream
void
close()
void
flush()
void
write(byte[] b)
void
write(byte[] b, int off, int len)
void
write(int b)
void
writeObject(Object obj)
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF
writeObject
void writeObject(Object obj) throws IOException
obj
- the object to be written
IOException
- Any of the usual Input/Output related exceptions.
void write(int b) throws IOException
write
in interface DataOutput
b
- the byte
IOException
- If an I/O error has occurred.
void write(byte[] b) throws IOException
write
in interface DataOutput
b
- the data to be written
IOException
- If an I/O error has occurred.
void write(byte[] b, int off, int len) throws IOException
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.
void flush() throws IOException
IOException
- If an I/O error has occurred.
void close() throws IOException
IOException
- If an I/O error has occurred.
Copyright © 2004, 2010 Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.
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