java.io
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.
Since JDK1.1
Version 1.23, 05/05/07
Author unascribed
close
public
void
close
(
)
flush
public
void
flush
(
)
write
public
void
write
(
int
b
)
Parameters
Type Name Description
int
b
the byte
Returns
void
write
public
void
write
(
byte
[]
b
)
Parameters
Type Name Description
byte[]
b
the data to be written
Returns
void
write
public
void
write
(
byte
[]
b,
int
off,
int
len
)
Parameters
Type Name Description
byte[]
b
the data to be written
int
off
the start offset in the data
int
len
the number of bytes that are written
Returns
void
writeObject
public
void
writeObject
(
Object
obj
)
Parameters
Type Name Description
Object
obj
the object to be written
Returns
void
Exceptions
IOException
Any of the usual Input/Output related exceptions.