Share via


ProtectedFileOutputStream.create synchronous method

Synchronously creates a new ProtectedFileOutputStream.

Signature

public static ProtectedFileOutputStream create(
                                       final OutputStream outputStream,
                                       UserPolicy policy,
                                       String originalFileExtension,
                                       Context applicationContext)
                              throws ProtectionException

Parameters

Name Datatype Notes
outputStream
OutputStream
The OutputStream that will be converted into a ProtectedFileOutputStream
policy
UserPolicy
The policy needed to create the ProtectedFileOutputStream,
If this parameter is null, a regular output stream is created.
originalFileExtension
String
applicationContext
Context

Returns

ProtectedFileOutputStream

Throws

ProtectionException

Defined in

ProtectedFileOutputStream.java

Supported Platforms

Minimum supported OS version
Android 4.0.3 (API level 15)