ObjectInputStream Constructors
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
ObjectInputStream() |
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream. |
ObjectInputStream(Stream) |
Creates an ObjectInputStream that reads from the specified InputStream. |
ObjectInputStream(IntPtr, JniHandleOwnership) |
A constructor used when creating managed representations of JNI objects; called by the runtime. |
ObjectInputStream()
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream.
[Android.Runtime.Register(".ctor", "()V", "")]
protected ObjectInputStream ();
- Attributes
Exceptions
if an error occurs when creating this stream.
Remarks
Provide a way for subclasses that are completely reimplementing ObjectInputStream to not have to allocate private data just used by this implementation of ObjectInputStream.
If there is a security manager installed, this method first calls the security manager's checkPermission
method with the SerializablePermission("enableSubclassImplementation")
permission to ensure it's ok to enable subclassing.
Java documentation for java.io.ObjectInputStream.ObjectInputStream()
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ObjectInputStream(Stream)
Creates an ObjectInputStream that reads from the specified InputStream.
[Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")]
public ObjectInputStream (System.IO.Stream? in);
[<Android.Runtime.Register(".ctor", "(Ljava/io/InputStream;)V", "")>]
new Java.IO.ObjectInputStream : System.IO.Stream -> Java.IO.ObjectInputStream
Parameters
- in
- Stream
input stream to read from
- Attributes
Exceptions
if an error occurs while reading the stream header.
if the source stream does not contain serialized objects that can be read.
Remarks
Creates an ObjectInputStream that reads from the specified InputStream. A serialization stream header is read from the stream and verified. This constructor will block until the corresponding ObjectOutputStream has written and flushed the header.
If a security manager is installed, this constructor will check for the "enableSubclassImplementation" SerializablePermission when invoked directly or indirectly by the constructor of a subclass which overrides the ObjectInputStream.readFields or ObjectInputStream.readUnshared methods.
Java documentation for java.io.ObjectInputStream.ObjectInputStream(java.io.InputStream)
.
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.
Applies to
ObjectInputStream(IntPtr, JniHandleOwnership)
A constructor used when creating managed representations of JNI objects; called by the runtime.
protected ObjectInputStream (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Java.IO.ObjectInputStream : nativeint * Android.Runtime.JniHandleOwnership -> Java.IO.ObjectInputStream
Parameters
- transfer
- JniHandleOwnership
A JniHandleOwnershipindicating how to handle javaReference
Remarks
Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.