Package java.io
Class ObjectOutputStream
- java.lang.Object
-
- java.io.OutputStream
-
- java.io.ObjectOutputStream
-
- All Implemented Interfaces:
DataOutput,ObjectOutput,ObjectStreamConstants
public class ObjectOutputStream extends OutputStream implements ObjectOutput, ObjectStreamConstants
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classObjectOutputStream.PutField
-
Field Summary
-
Fields inherited from interface java.io.ObjectStreamConstants
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
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedObjectOutputStream()ObjectOutputStream(OutputStream var0)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidannotateClass(Class var0)protected voidannotateProxyClass(Class var0)voidclose()voiddefaultWriteObject()protected voiddrain()protected booleanenableReplaceObject(boolean var0)voidflush()ObjectOutputStream.PutFieldputFields()protected ObjectreplaceObject(Object var0)voidreset()voiduseProtocolVersion(int var0)voidwrite(byte[] var0)voidwrite(byte[] var0, int var1, int var2)voidwrite(int var0)voidwriteBoolean(boolean var0)voidwriteByte(int var0)voidwriteBytes(String var0)voidwriteChar(int var0)voidwriteChars(String var0)protected voidwriteClassDescriptor(ObjectStreamClass var0)voidwriteDouble(double var0)voidwriteFields()voidwriteFloat(float var0)voidwriteInt(int var0)voidwriteLong(long var0)voidwriteObject(Object var0)protected voidwriteObjectOverride(Object var0)voidwriteShort(int var0)protected voidwriteStreamHeader()voidwriteUTF(String var0)
-
-
-
Constructor Detail
-
ObjectOutputStream
protected ObjectOutputStream() throws IOException, SecurityException- Throws:
IOExceptionSecurityException
-
ObjectOutputStream
public ObjectOutputStream(OutputStream var0) throws IOException
- Throws:
IOException
-
-
Method Detail
-
annotateClass
protected void annotateClass(Class var0) throws IOException
- Throws:
IOException
-
annotateProxyClass
protected void annotateProxyClass(Class var0) throws IOException
- Throws:
IOException
-
close
public void close() throws IOException- Specified by:
closein interfaceObjectOutput- Overrides:
closein classOutputStream- Throws:
IOException
-
defaultWriteObject
public void defaultWriteObject() throws IOException- Throws:
IOException
-
drain
protected void drain() throws IOException- Throws:
IOException
-
enableReplaceObject
protected boolean enableReplaceObject(boolean var0) throws SecurityException- Throws:
SecurityException
-
flush
public void flush() throws IOException- Specified by:
flushin interfaceObjectOutput- Overrides:
flushin classOutputStream- Throws:
IOException
-
putFields
public ObjectOutputStream.PutField putFields() throws IOException
- Throws:
IOException
-
replaceObject
protected Object replaceObject(Object var0) throws IOException
- Throws:
IOException
-
reset
public void reset() throws IOException- Throws:
IOException
-
useProtocolVersion
public void useProtocolVersion(int var0) throws IOException- Throws:
IOException
-
write
public void write(byte[] var0) throws IOException- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceObjectOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(byte[] var0, int var1, int var2) throws IOException- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceObjectOutput- Overrides:
writein classOutputStream- Throws:
IOException
-
write
public void write(int var0) throws IOException- Specified by:
writein interfaceDataOutput- Specified by:
writein interfaceObjectOutput- Specified by:
writein classOutputStream- Throws:
IOException
-
writeBoolean
public void writeBoolean(boolean var0) throws IOException- Specified by:
writeBooleanin interfaceDataOutput- Throws:
IOException
-
writeByte
public void writeByte(int var0) throws IOException- Specified by:
writeBytein interfaceDataOutput- Throws:
IOException
-
writeBytes
public void writeBytes(String var0) throws IOException
- Specified by:
writeBytesin interfaceDataOutput- Throws:
IOException
-
writeChar
public void writeChar(int var0) throws IOException- Specified by:
writeCharin interfaceDataOutput- Throws:
IOException
-
writeChars
public void writeChars(String var0) throws IOException
- Specified by:
writeCharsin interfaceDataOutput- Throws:
IOException
-
writeDouble
public void writeDouble(double var0) throws IOException- Specified by:
writeDoublein interfaceDataOutput- Throws:
IOException
-
writeFields
public void writeFields() throws IOException- Throws:
IOException
-
writeFloat
public void writeFloat(float var0) throws IOException- Specified by:
writeFloatin interfaceDataOutput- Throws:
IOException
-
writeInt
public void writeInt(int var0) throws IOException- Specified by:
writeIntin interfaceDataOutput- Throws:
IOException
-
writeLong
public void writeLong(long var0) throws IOException- Specified by:
writeLongin interfaceDataOutput- Throws:
IOException
-
writeClassDescriptor
protected void writeClassDescriptor(ObjectStreamClass var0) throws IOException
- Throws:
IOException
-
writeObject
public final void writeObject(Object var0) throws IOException
- Specified by:
writeObjectin interfaceObjectOutput- Throws:
IOException
-
writeObjectOverride
protected void writeObjectOverride(Object var0) throws IOException
- Throws:
IOException
-
writeShort
public void writeShort(int var0) throws IOException- Specified by:
writeShortin interfaceDataOutput- Throws:
IOException
-
writeStreamHeader
protected void writeStreamHeader() throws IOException- Throws:
IOException
-
writeUTF
public void writeUTF(String var0) throws IOException
- Specified by:
writeUTFin interfaceDataOutput- Throws:
IOException
-
-