public class NotAuthorizedMediaException extends NotAuthorizedException implements NotAuthorizedInterface
COMMERCIAL_DIALOG, ELEMENTARY_STREAM, FREE_PREVIEW_DIALOG, GEOGRAPHICAL_BLACKOUT, MATURITY_RATING, MATURITY_RATING_DIALOG, NO_ENTITLEMENT, NOT_POSSIBLE, OTHER, POSSIBLE_UNDER_CONDITIONS, SERVICE, TECHNICAL, TECHNICAL_DIALOG| Constructor and Description |
|---|
NotAuthorizedMediaException(ElementaryStream[] e,
int[] reason)
Constructor for exception due to failure accessing one or more MPEG elementary streams
The caller of this constructor is responsible for ensuring the two arrays provided
as parameters are the same size.
|
NotAuthorizedMediaException(ElementaryStream[] e,
int[] major_reason,
int[] minor_reason)
Constructor for exception due to failure accessing one or more MPEG elementary streams
The caller of this constructor is responsible for ensuring the three arrays provided
as parameters are the same size.
|
NotAuthorizedMediaException(Service s,
int reason)
Constructor for exception due to failure accessing an MPEG service
|
NotAuthorizedMediaException(Service s,
int major_reason,
int minor_reason)
Constructor for exception due to failure accessing an MPEG service
|
| Modifier and Type | Method and Description |
|---|---|
ElementaryStream[] |
getElementaryStreams()
If getType() returns ELEMENTARY_STREAM, then this method returns
the set of ElementaryStreams that could not be descrambled.
|
int[] |
getReason(int index)
Returns the reason(s) why descrambling was not possible.
|
Service |
getService()
If getType() returns SERVICE, then this method returns the
Service that could not be descrambled.
|
int |
getType() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic NotAuthorizedMediaException(Service s, int reason)
s - the service which could not be accessedreason - the reason why the service could not be accessedpublic NotAuthorizedMediaException(ElementaryStream[] e, int[] reason)
Use of the constructor NotAuthorizedMediaException(ElementaryStream[] e, int[] reason) will result in the major reason for each elementary stream being the one specified in the reason parameter to the method and the minor reason being OTHER as defined in NotAuthorizedInterface.
e - the elementary streams which could not be accessedreason - the reason why the exception was thrown for each elementary streampublic NotAuthorizedMediaException(ElementaryStream[] e, int[] major_reason, int[] minor_reason)
e - the elementary streams which could not be accessedmajor_reason - the major reason why the exception was thrown for each elementary streamminor_reason - the minor reason why the exception was thrown for each elementary streampublic NotAuthorizedMediaException(Service s, int major_reason, int minor_reason)
s - the service which could not be accessedmajor_reason - the major reason why the service could not be accessedminor_reason - the minor reason why the service could not be accessedpublic int getType()
getType in interface NotAuthorizedInterfacepublic Service getService()
getService in interface NotAuthorizedInterfacepublic ElementaryStream[] getElementaryStreams()
getElementaryStreams in interface NotAuthorizedInterfacepublic int[] getReason(int index)
throws IndexOutOfBoundsException
getReason in interface NotAuthorizedInterfaceindex - If the component to which access failed is a Service,
index shall be 0. Otherwise index shall refer to one stream in the
set returnedby getElementaryStreams().IndexOutOfBoundsException - If the component to which access
failed is a Service, this exception will be thrown if index is non zero.
If the component(s) to which access failed was a (set of) elementary
streams then this exception will be thrown where index is beyond the
size of the array returned by getElementaryStreams.NotAuthorizedInterface.getElementaryStreams()Copyright © 2012 code4tv.com. All Rights Reserved.