|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.dvb.si.Descriptor
This class represents a descriptor within a sub-table.
A descriptor consist of three fields: a tag, a contentLength and the content.
The tag uniquely identifies the descriptor type. The content length indicates the number of bytes in the content. The content consists of an array of bytes of length content length. The data represented by the content is descriptor type dependent.
DescriptorTag
Constructor Summary | |
protected |
Descriptor()
This constructor is provided for the use of implementations and specifications which extend the present document. |
Method Summary | |
byte |
getByteAt(int index)
Get a particular byte within the descriptor content |
byte[] |
getContent()
Get a copy of the content of this descriptor (everything after the length field). |
short |
getContentLength()
This method returns the length of the descriptor content as coded in the length field of this descriptor. |
short |
getTag()
Get the descriptor tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
protected Descriptor()
Method Detail |
public short getTag()
DescriptorTag
.
DescriptorTag
public short getContentLength()
public byte getByteAt(int index) throws java.lang.IndexOutOfBoundsException
index
- index to the descriptor content. Value 0 corresponds to the
first byte after the length field.
java.lang.IndexOutOfBoundsException
- if index < 0 or index >= ContentLengthpublic byte[] getContent()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |