Skip to content

Most visited

Recently visited

navigation
Added in API level 1

OptionalDataException

public class OptionalDataException
extends ObjectStreamException

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


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

See also:

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.

Inherited methods

From class java.lang.Throwable
From class java.lang.Object

Fields

eof

Added in API level 1
boolean eof

true indicates that there is no more primitive data available.

length

Added in API level 1
int length

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

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.