IOException, SecurityException
java.io.ObjectOutputStream (class)
Constructors:
ObjectOutputStream(OutputStream o);
General Description: Using this class you transmit or store objects. You create this object with an OutputStream (available in the Socket class).
Parent Class: OutputStream
Methods
void close(); Close this channel.
void defaultWriteObject(); Write the current class' non-static and non-transient fields to this stream. You can only call this while in the writeObject() method during serialization.
int flush(); Flush written data from buffers.
int reset(); Toss the information written to the stream.
void useProtocolVersion(int version); Force earlier serialization version.
void write(byte b);
int write(byte[] arr);
int write(byte[] arr, int offset, int len); Write a byte or an array of bytes beginning at offset for len bytes.
void writeboolean(boolean b);
void writeByte(byte b);
void writeBytes(String s);
void writeChar(int c);
void writeChars(String s);
void writeDouble(double d);
void writeFloat(float f);
void writeInt(int i);
void writeLong(long l);
void writeShort(int us);
void writeUTF(String s); Write the designated type.
int writeFields(); Write buffered fields to stream.
void writeObject(Object o); Write Object instance.
Exceptions Thrown