All Implemented Interfaces:
Closeable, DataInput, ObjectInput, ObjectStreamConstants, AutoCloseable

  • Nested Class Summary

    Nested Classes

    static class 

    Provide access to the persistent fields read from the input stream.

  • Field Summary

    Fields declared in interface ObjectStreamConstants

    baseWireHandle, PROTOCOL_VERSION_1, PROTOCOL_VERSION_2, SC_BLOCK_DATA, SC_ENUM, SC_EXTERNALIZABLE, SC_SERIALIZABLE, SC_WRITE_METHOD, SERIAL_FILTER_PERMISSION, STREAM_MAGIC, STREAM_VERSION, SUBCLASS_IMPLEMENTATION_PERMISSION, SUBSTITUTION_PERMISSION, TC_ARRAY, TC_BASE, TC_BLOCKDATA, TC_BLOCKDATALONG, TC_CLASS, TC_CLASSDESC, TC_ENDBLOCKDATA, TC_ENUM, TC_EXCEPTION, TC_LONGSTRING, TC_MAX, TC_NULL, TC_OBJECT, TC_PROXYCLASSDESC, TC_REFERENCE, TC_RESET, TC_STRING

    static final int

    First wire handle to be assigned.

    static final int

    A Stream Protocol Version.

    static final int

    A Stream Protocol Version.

    static final byte

    Bit mask for ObjectStreamClass flag.

    static final byte

    Bit mask for ObjectStreamClass flag.

    static final byte

    Bit mask for ObjectStreamClass flag.

    static final byte

    Bit mask for ObjectStreamClass flag.

    static final byte

    Bit mask for ObjectStreamClass flag.

    Enable setting the system-wide serial filter.

    static final short

    Magic number that is written to the stream header.

    static final short

    Version number that is written to the stream header.

    Enable overriding of readObject and writeObject.

    Enable substitution of one object for another during serialization/deserialization.

    static final byte

    static final byte

    static final byte

    static final byte

    static final byte

    static final byte

    static final byte

    End of optional block data blocks for an object.

    static final byte

    static final byte

    static final byte

    static final byte

    static final byte

    static final byte

    static final byte

    new Proxy Class Descriptor.

    static final byte

    Reference to an object already written into the stream.

    static final byte

    static final byte

  • Constructor Summary

    Constructors

    protected

    Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream.

    Creates an ObjectInputStream that reads from the specified InputStream.

  • Method Summary

    int

    available()

    Returns the number of bytes that can be read without blocking.

    void

    close()

    Closes this input stream and releases any system resources associated with the stream.

    void

    Read the non-static and non-transient fields of the current class from this stream.

    protected boolean

    enableResolveObject(boolean enable)

    Enables the stream to do replacement of objects read from the stream.

    Returns the deserialization filter for this stream.

    int

    read()

    int

    read(byte[] buf, int off, int len)

    Reads into an array of bytes.

    boolean

    byte

    readByte()

    char

    readChar()

    Read a class descriptor from the serialization stream.

    double

    Reads the persistent fields from the stream and makes them available by name.

    float

    readFloat()

    void

    readFully(byte[] buf)

    Reads bytes, blocking until all bytes are read.

    void

    readFully(byte[] buf, int off, int len)

    Reads bytes, blocking until all bytes are read.

    int

    readInt()

    readLine()

    long

    readLong()

    Read an object from the ObjectInputStream.

    This method is called by trusted subclasses of ObjectInputStream that constructed ObjectInputStream using the protected no-arg constructor.

    short

    readShort()

    protected void

    The readStreamHeader method is provided to allow subclasses to read and verify their own stream headers.

    Reads an "unshared" object from the ObjectInputStream.

    int

    Reads an unsigned 8-bit byte.

    int

    Reads an unsigned 16-bit short.

    readUTF()

    void

    Register an object to be validated before the graph is returned.

    Load the local class equivalent of the specified stream class description.

    This method will allow trusted subclasses of ObjectInputStream to substitute one object for another during deserialization.

    Returns a proxy class that implements the interfaces named in a proxy class descriptor; subclasses may implement this method to read custom data from the stream along with the descriptors for dynamic proxy classes, allowing them to use an alternate loading mechanism for the interfaces and the proxy class.

    final void

    Set the deserialization filter for the stream.

    int

    skipBytes(int len)

    Methods declared in class InputStream

    mark, markSupported, nullInputStream, read, readAllBytes, readNBytes, readNBytes, reset, skip, skipNBytes, transferTo

    void

    mark(int readlimit)

    Marks the current position in this input stream.

    boolean

    Tests if this input stream supports the mark and reset methods.

    Returns a new InputStream that reads no bytes.

    int

    Reads some number of bytes from the input stream and stores them into the buffer array b.

    byte[]

    Reads all remaining bytes from the input stream.

    int

    Reads the requested number of bytes from the input stream into the given byte array.

    byte[]

    Reads up to a specified number of bytes from the input stream.

    void

    Repositions this stream to the position at the time the mark method was last called on this input stream.

    long

    Skips over and discards n bytes of data from this input stream.

    void

    Skips over and discards exactly n bytes of data from this input stream.

    long

    Reads all bytes from this input stream and writes the bytes to the given output stream in the order that they are read.

    Methods declared in class Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Creates and returns a copy of this object.

    boolean

    Indicates whether some other object is "equal to" this one.

    protected void

    Deprecated, for removal: This API element is subject to removal in a future version.

    Returns the runtime class of this Object.

    int

    Returns a hash code value for this object.

    final void

    Wakes up a single thread that is waiting on this object's monitor.

    final void

    Wakes up all threads that are waiting on this object's monitor.

    Returns a string representation of the object.

    final void

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

    final void

    wait(long timeoutMillis)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

    final void

    wait(long timeoutMillis, int nanos)

    Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

  • Constructor Details

    • ObjectInputStream

    • ObjectInputStream

  • Method Details

    • readObject

    • readObjectOverride

    • readUnshared

    • defaultReadObject

    • readFields

    • registerValidation

    • resolveClass

    • resolveProxyClass

    • resolveObject

    • enableResolveObject

    • readClassDescriptor

    • read

    • read

    • available

    • close

    • readBoolean

    • readByte

    • readUnsignedByte

    • readChar

    • readShort

    • readUnsignedShort

    • readInt

    • readLong

    • readFloat

    • readDouble

    • readFully

    • readFully

    • skipBytes

    • readLine

    • readUTF

    • getObjectInputFilter

    • setObjectInputFilter