|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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
Method Summary | |
---|---|
void |
close()
Suppressed. Closes the stream. |
void |
flush()
Suppressed. Flushes the stream. |
void |
write(byte[] b)
Suppressed. Writes an array of bytes. |
void |
write(byte[] b,
int off,
int len)
Suppressed. Writes a sub array of bytes. |
void |
write(int b)
Suppressed. Writes a byte. |
void |
writeObject(Object obj)
Suppressed. Write an object to the underlying storage or stream. |
Methods inherited from interface java.io.DataOutput |
---|
writeBoolean, writeByte, writeBytes, writeChar, writeChars, writeDouble, writeFloat, writeInt, writeLong, writeShort, writeUTF |
Method Detail |
---|
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 writtenoff
- the start offset in the datalen
- 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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |