org.dvb.xml.jdom
Interface UnknownElementContent


public interface UnknownElementContent

Interface that provides access to Unknown Element Content corresponding to unknown schemas.


Method Summary
 int getNumberOfSchemas()
          Get the number of schema listed in the TVA-init structure.
 java.lang.String[] getSchemas()
          Get names of the schemas listed in the TVA-init structure.
 java.lang.String getSchemaURI(int schemaIdentifier)
          Get the URI of the schema referenced by the specified schemaIdentifier.
 java.lang.String[] getStrings()
          Get the strings associated with this UnknownElementContent.
 byte[] getTVAInit()
          Get the TVA-init structure associated with this UnknownElementContent.
 boolean hasMoreBits()
          Tests whether there is more binary data to read from this UnknownElementContent.
 int readBits(int n)
          Read a specified number of bits from the binary data of this UnknownElementContent.
 

Method Detail

readBits

int readBits(int n)
Read a specified number of bits from the binary data of this UnknownElementContent.

Parameters:
n - the number of bits to read. This must be a value greater than zero and less than or equal to 32.
Returns:
a value where the LSBs contain the required bits.
Throws:
java.lang.IllegalArgumentException - if the supplied argument is outside the permitted range.
java.lang.IndexOutOfBoundsException - if the requested number of bits exceeds the number remaining to be read.

hasMoreBits

boolean hasMoreBits()
Tests whether there is more binary data to read from this UnknownElementContent.

Returns:
true if there are more bits to be read, false otherwise.

getStrings

java.lang.String[] getStrings()
Get the strings associated with this UnknownElementContent. The method will return null if there are no strings referenced by this UnknownElementContent.

Returns:
an array of strings or null. The strings in the array will be in the same order that they are referenced by the UnknownElementContent.

getTVAInit

byte[] getTVAInit()
Get the TVA-init structure associated with this UnknownElementContent.

Returns:
a byte array carrying the TVA-init structure.

getSchemaURI

java.lang.String getSchemaURI(int schemaIdentifier)
Get the URI of the schema referenced by the specified schemaIdentifier. The URIs are listed in the decoderInit information carried by the TVA-init structure.

Parameters:
schemaIdentifier - the zero-based index of the schema within the decoderInit information
Returns:
the URI of the schema

getNumberOfSchemas

int getNumberOfSchemas()
Get the number of schema listed in the TVA-init structure. The number of schema is signalled in the decoderInit information.

Returns:
the number of schema.

getSchemas

java.lang.String[] getSchemas()
Get names of the schemas listed in the TVA-init structure. The schemas are listed in the decoderInit information.

Returns:
an array listing all the schemas