public class Descriptor extends Object
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| Modifier | Constructor and Description |
|---|---|
protected |
Descriptor()
This constructor is provided for the use of implementations and specifications
which extend the present document.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
protected Descriptor()
public short getTag()
DescriptorTag.DescriptorTagpublic short getContentLength()
public byte getByteAt(int index)
throws IndexOutOfBoundsException
index - index to the descriptor content. Value 0 corresponds to the
first byte after the length field.IndexOutOfBoundsException - if index < 0 or index >= ContentLengthpublic byte[] getContent()
Copyright © 2012 code4tv.com. All Rights Reserved.