Java java.io ObjectOutputStream fields, constructors, methods, implement or subclass

Example usage for Java java.io ObjectOutputStream fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.io ObjectOutputStream.

The text is from its open source code.

Subclass

java.io.ObjectOutputStream has subclasses.
Click this link to see all its subclasses.

Constructor

ObjectOutputStream(OutputStream out)
Creates an ObjectOutputStream that writes to the specified OutputStream.

Method

voidclose()
Closes the stream.
voiddefaultWriteObject()
Write the non-static and non-transient fields of the current class to this stream.
voidflush()
Flushes the stream.
ObjectOutputStream.PutFieldputFields()
Retrieve the object used to buffer persistent fields to be written to the stream.
voidreset()
Reset will disregard the state of any objects already written to the stream.
voiduseProtocolVersion(int version)
Specify stream protocol version to use when writing the stream.
voidwrite(byte[] buf, int off, int len)
Writes a sub array of bytes.
voidwrite(int val)
Writes a byte.
voidwrite(byte[] buf)
Writes an array of bytes.
voidwriteBoolean(boolean val)
Writes a boolean.
voidwriteByte(int val)
Writes an 8 bit byte.
voidwriteBytes(String str)
Writes a String as a sequence of bytes.
voidwriteChar(int val)
Writes a 16 bit char.
voidwriteChars(String str)
Writes a String as a sequence of chars.
voidwriteDouble(double val)
Writes a 64 bit double.
voidwriteFields()
Write the buffered fields to the stream.
voidwriteFloat(float val)
Writes a 32 bit float.
voidwriteInt(int val)
Writes a 32 bit int.
voidwriteLong(long val)
Writes a 64 bit long.
voidwriteObject(Object obj)
Write the specified object to the ObjectOutputStream.
voidwriteShort(int val)
Writes a 16 bit short.
voidwriteUnshared(Object obj)
Writes an "unshared" object to the ObjectOutputStream.
voidwriteUTF(String str)
Primitive data write of this String in modified UTF-8 format.