|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
java.io.IOException
org.davic.media.NotAuthorizedException
org.davic.media.NotAuthorizedMediaException
public class NotAuthorizedMediaException
This exception indicates that the source can not be accessed in order to reference the new content, the source has not been accepted.
Field Summary |
---|
Fields inherited from interface org.davic.mpeg.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 Summary | |
---|---|
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 |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Throwable |
---|
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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 accessedMethod Detail |
---|
public int getType()
getType
in interface NotAuthorizedInterface
public Service getService()
getService
in interface NotAuthorizedInterface
public ElementaryStream[] getElementaryStreams()
getElementaryStreams
in interface NotAuthorizedInterface
public int[] getReason(int index) throws java.lang.IndexOutOfBoundsException
getReason
in interface NotAuthorizedInterface
index
- 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().
java.lang.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()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |