|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Throwable
java.lang.Exception
org.davic.mpeg.NotAuthorizedException
This class is thrown by MPEG related APIs when access is requested to information which is scrambled and to which access is not permitted by the security system.
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 | |
NotAuthorizedException()
Constructs a NotAuthorizedException with no detail message |
|
NotAuthorizedException(java.lang.String s)
Constructs a NotAuthorizedException with the specified detail message |
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 |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public NotAuthorizedException()
public NotAuthorizedException(java.lang.String s)
s
- the detail messageMethod 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 |