public class

DrmConvertedStatus

extends Object
java.lang.Object
   ↳ android.drm.DrmConvertedStatus

Class Overview

An entity class that wraps converted data, conversion status, and the offset for appending the header and body signature to the converted data. An instance of this class is returned by the convertData() and closeConvertSession() methods. The offset is provided only when a conversion session is closed by calling closeConvertSession().

Summary

Constants
int STATUS_ERROR
int STATUS_INPUTDATA_ERROR
int STATUS_OK
Fields
public final byte[] convertedData Converted data.
public final int offset Offset value for the body and header signature.
public final int statusCode Status code for the conversion.
Public Constructors
DrmConvertedStatus(int _statusCode, byte[] _convertedData, int _offset)
Creates a DrmConvertedStatus object with the specified parameters.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int STATUS_ERROR

Since: API Level 11

Constant Value: 3 (0x00000003)

public static final int STATUS_INPUTDATA_ERROR

Since: API Level 11

Constant Value: 2 (0x00000002)

public static final int STATUS_OK

Since: API Level 11

Constant Value: 1 (0x00000001)

Fields

public final byte[] convertedData

Since: API Level 11

Converted data.

public final int offset

Since: API Level 11

Offset value for the body and header signature.

public final int statusCode

Since: API Level 11

Status code for the conversion.

Public Constructors

public DrmConvertedStatus (int _statusCode, byte[] _convertedData, int _offset)

Since: API Level 11

Creates a DrmConvertedStatus object with the specified parameters.

Parameters
_statusCode Conversion status.
_convertedData Converted data.
_offset Offset value for appending the header and body signature.