CustomProtectedInputStream class

This class implements a wrapper of the input stream allowing writing of a custom RMS protected output stream. Custom denotes that it is more configurable than the default protected input stream, also CustomProtectedInputStream requires a user policy as an input.


public class CustomProtectedInputStream extends InputStream

CustomProtectedInputStream extends Android's base class. For information on base class methods see, InputStream.


Name Description
create asynchronous
Asynchronously creates an input stream for reading protected content.
create synchronous
Synchronously creates an input stream for reading protected content.
Gets the user policy associated with the stream.

Defined in

Supported Platforms

Minimum supported OS version
Android 4.0.3 (API level 15)


Thread Safety

Members of this class are not guaranteed to be thread safe.

See also

Android API Reference

Developer guidance and terms

Get started