com.gcapmedia.dab.epg.binary
Enum TokenTag

java.lang.Object
  extended by java.lang.Enum<TokenTag>
      extended by com.gcapmedia.dab.epg.binary.TokenTag
All Implemented Interfaces:
Encodable, java.io.Serializable, java.lang.Comparable<TokenTag>

public enum TokenTag
extends java.lang.Enum<TokenTag>
implements Encodable

List all defined token tags as per ETSI TS 101 371 V1.2.1 (2006-02)


Enum Constant Summary
TOKEN_1
           
TOKEN_10
           
TOKEN_11
           
TOKEN_12
           
TOKEN_13
           
TOKEN_14
           
TOKEN_15
           
TOKEN_16
           
TOKEN_2
           
TOKEN_3
           
TOKEN_4
           
TOKEN_5
           
TOKEN_6
           
TOKEN_7
           
TOKEN_8
           
TOKEN_9
           
 
Method Summary
static TokenTag fromBytes(byte[] bytes)
          Parse an object from its byte array representation
 byte[] getBytes()
           
 int getLength()
           
 int getValue()
           
static boolean isToken(byte bite)
           
static TokenTag valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static TokenTag[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

TOKEN_1

public static final TokenTag TOKEN_1

TOKEN_2

public static final TokenTag TOKEN_2

TOKEN_3

public static final TokenTag TOKEN_3

TOKEN_4

public static final TokenTag TOKEN_4

TOKEN_5

public static final TokenTag TOKEN_5

TOKEN_6

public static final TokenTag TOKEN_6

TOKEN_7

public static final TokenTag TOKEN_7

TOKEN_8

public static final TokenTag TOKEN_8

TOKEN_9

public static final TokenTag TOKEN_9

TOKEN_10

public static final TokenTag TOKEN_10

TOKEN_11

public static final TokenTag TOKEN_11

TOKEN_12

public static final TokenTag TOKEN_12

TOKEN_13

public static final TokenTag TOKEN_13

TOKEN_14

public static final TokenTag TOKEN_14

TOKEN_15

public static final TokenTag TOKEN_15

TOKEN_16

public static final TokenTag TOKEN_16
Method Detail

values

public static TokenTag[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TokenTag c : TokenTag.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TokenTag valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getBytes

public byte[] getBytes()
Specified by:
getBytes in interface Encodable
Returns:
Returns the data as bytes
See Also:
Encodable.getBytes()

getValue

public int getValue()
Returns:
Returns the tag value

getLength

public int getLength()
Specified by:
getLength in interface Encodable
Returns:
Returns the length of this data
See Also:
Encodable.getLength()

fromBytes

public static TokenTag fromBytes(byte[] bytes)
Parse an object from its byte array representation

Parameters:
parent - Tag parent
bytes - Byte array representation

isToken

public static boolean isToken(byte bite)


Copyright © 2007. All Rights Reserved.