|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
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()
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. |
Methods inherited from interface java.io.DataOutput |
writeBoolean,
writeByte,
writeBytes,
writeChar,
writeChars,
writeDouble,
writeFloat,
writeInt,
writeLong,
writeShort,
writeUTF |
Method Detail |
public void writeObject(Object obj) throws IOException
public void write(int b) throws IOException
b
- the bytepublic void write(byte[] b) throws IOException
b
- the data to be writtenpublic void write(byte[] b, int off, int len) throws IOException
b
- the data to be writtenoff
- the start offset in the datalen
- the number of bytes that are writtenpublic void flush() throws IOException
public void close() throws IOException
|
Java Platform 1.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |