Please note that the contents of this offline web site may be out of date. To access the most recent documentation visit the online version .
Note that links that point to online resources are green in color and will open in a new window.
We would love it if you could give us feedback about this material by filling this form (You have to be online to fill it)
Android APIs
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

Added in API level 1

true indicates that there is no more primitive data available.

public int length

Added in API level 1

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