OptionalDataException  |  API reference  |  Android Developers (original) (raw)

open class OptionalDataException : ObjectStreamException

kotlin.Any
kotlin.Throwable
java.lang.Exception
java.io.IOException
java.io.ObjectStreamException

Exception indicating the failure of an object read operation due to unread primitive data, or the end of data belonging to a serialized object in the stream. This exception may be thrown in two cases:

Summary

Properties
Boolean eof True if there is no more data in the buffered part of the stream.
Int length The number of bytes of primitive data available to be read in the current buffer.

Properties

eof

var eof: Boolean

True if there is no more data in the buffered part of the stream.

length

var length: Int

The number of bytes of primitive data available to be read in the current buffer.

Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.

Last updated 2025-02-10 UTC.