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

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

Introduction

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

The text is from its open source code.

Subclass

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

Constructor

ObjectInputStream(InputStream in)
Creates an ObjectInputStream that reads from the specified InputStream.

Method

intavailable()
Returns the number of bytes that can be read without blocking.
voidclose()
Closes the input stream.
voiddefaultReadObject()
Read the non-static and non-transient fields of the current class from this stream.
intread(byte[] buf, int off, int len)
Reads into an array of bytes.
intread(byte b[])
Reads some number of bytes from the input stream and stores them into the buffer array b.
intread()
Reads a byte of data.
booleanreadBoolean()
Reads in a boolean.
bytereadByte()
Reads an 8 bit byte.
charreadChar()
Reads a 16 bit char.
doublereadDouble()
Reads a 64 bit double.
ObjectInputStream.GetFieldreadFields()
Reads the persistent fields from the stream and makes them available by name.
floatreadFloat()
Reads a 32 bit float.
voidreadFully(byte[] buf)
Reads bytes, blocking until all bytes are read.
voidreadFully(byte[] buf, int off, int len)
Reads bytes, blocking until all bytes are read.
intreadInt()
Reads a 32 bit int.
StringreadLine()
Reads in a line that has been terminated by a \n, \r, \r\n or EOF.
longreadLong()
Reads a 64 bit long.
ObjectreadObject()
Read an object from the ObjectInputStream.
shortreadShort()
Reads a 16 bit short.
ObjectreadUnshared()
Reads an "unshared" object from the ObjectInputStream.
intreadUnsignedByte()
Reads an unsigned 8 bit byte.
intreadUnsignedShort()
Reads an unsigned 16 bit short.
StringreadUTF()
Reads a String in modified UTF-8 format.
voidregisterValidation(ObjectInputValidation obj, int prio)
Register an object to be validated before the graph is returned.
intskipBytes(int len)
Skips bytes.