public class

OptionalDataException

extends ObjectStreamException
java.lang.Object
   ↳ java.lang.Throwable
     ↳ java.lang.Exception
       ↳ java.io.IOException
         ↳ java.io.ObjectStreamException
           ↳ java.io.OptionalDataException

Class Overview

Signals that the ObjectInputStream class encountered a primitive type (int, char etc.) instead of an object instance in the input stream.

Summary

Fields
public boolean eof true indicates that there is no more primitive data available.
public int length The number of bytes of primitive data (int, char, long etc.) that are available.
[Expand]
Inherited Methods
From class java.lang.Throwable
From class java.lang.Object

Fields

public boolean eof

Since: API Level 1

true indicates that there is no more primitive data available.

public int length

Since: API Level 1

The number of bytes of primitive data (int, char, long etc.) that are available.