public class ObjectOutputStream extends OutputStream implements ObjectOutput, ObjectStreamConstants
Modifier and Type | Class and Description |
---|---|
static class |
ObjectOutputStream.PutField
end of internal hashtable methods
|
baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING
Modifier | Constructor and Description |
---|---|
protected |
ObjectOutputStream() |
|
ObjectOutputStream(OutputStream out) |
Modifier and Type | Method and Description |
---|---|
protected void |
annotateClass(Class clazz) |
protected void |
annotateProxyClass(Class clazz) |
void |
close() |
void |
defaultWriteObject() |
protected void |
drain() |
protected boolean |
enableReplaceObject(boolean enable) |
void |
flush() |
ObjectOutputStream.PutField |
putFields() |
protected Object |
replaceObject(Object obj) |
void |
reset() |
void |
useProtocolVersion(int version) |
void |
write(byte[] buf) |
void |
write(byte[] buf,
int off,
int len) |
void |
write(int data) |
void |
writeBoolean(boolean data) |
void |
writeByte(int data) |
void |
writeBytes(String string) |
void |
writeChar(int data) |
void |
writeChars(String string) |
protected void |
writeClassDescriptor(ObjectStreamClass osc) |
void |
writeDouble(double d) |
void |
writeFields() |
void |
writeFloat(float f) |
void |
writeInt(int data) |
void |
writeLong(long data) |
void |
writeObject(Object obj) |
protected void |
writeObjectOverride(Object obj) |
void |
writeShort(int data) |
protected void |
writeStreamHeader() |
void |
writeUnshared(Object obj) |
void |
writeUTF(String s) |
protected ObjectOutputStream() throws IOException, SecurityException
IOException
SecurityException
public ObjectOutputStream(OutputStream out) throws IOException
IOException
protected void annotateClass(Class clazz) throws IOException
IOException
protected void annotateProxyClass(Class clazz) throws IOException
IOException
public void close() throws IOException
close
in interface ObjectOutput
close
in class OutputStream
IOException
public void defaultWriteObject() throws IOException
IOException
public void writeUnshared(Object obj) throws IOException
IOException
protected void drain() throws IOException
IOException
protected boolean enableReplaceObject(boolean enable) throws SecurityException
SecurityException
public void flush() throws IOException
flush
in interface ObjectOutput
flush
in class OutputStream
IOException
public ObjectOutputStream.PutField putFields() throws IOException
IOException
protected Object replaceObject(Object obj) throws IOException
IOException
public void reset() throws IOException
IOException
public void useProtocolVersion(int version) throws IOException
IOException
public void write(byte[] buf) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class OutputStream
IOException
public void write(byte[] buf, int off, int len) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class OutputStream
IOException
public void write(int data) throws IOException
write
in interface DataOutput
write
in interface ObjectOutput
write
in class OutputStream
IOException
public void writeBoolean(boolean data) throws IOException
writeBoolean
in interface DataOutput
IOException
public void writeByte(int data) throws IOException
writeByte
in interface DataOutput
IOException
public void writeBytes(String string) throws IOException
writeBytes
in interface DataOutput
IOException
public void writeChar(int data) throws IOException
writeChar
in interface DataOutput
IOException
public void writeChars(String string) throws IOException
writeChars
in interface DataOutput
IOException
protected void writeClassDescriptor(ObjectStreamClass osc) throws IOException
IOException
public void writeDouble(double d) throws IOException
writeDouble
in interface DataOutput
IOException
public void writeFields() throws IOException
IOException
public void writeFloat(float f) throws IOException
writeFloat
in interface DataOutput
IOException
public void writeInt(int data) throws IOException
writeInt
in interface DataOutput
IOException
public void writeLong(long data) throws IOException
writeLong
in interface DataOutput
IOException
public final void writeObject(Object obj) throws IOException
writeObject
in interface ObjectOutput
IOException
protected void writeObjectOverride(Object obj) throws IOException
IOException
public void writeShort(int data) throws IOException
writeShort
in interface DataOutput
IOException
protected void writeStreamHeader() throws IOException
IOException
public void writeUTF(String s) throws IOException
writeUTF
in interface DataOutput
IOException