com.gcapmedia.dab.epg.binary
Class ShortCridType

java.lang.Object
  extended by com.gcapmedia.dab.epg.binary.ShortCridType
All Implemented Interfaces:
Encodable

public class ShortCridType
extends java.lang.Object
implements Encodable


Constructor Summary
ShortCridType(ShortCrid shortCrid)
          Create a new Short CRID type
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static ShortCridType fromBytes(byte[] bytes)
          Parse the type from its byte array representation
 byte[] getBytes()
           
 int getLength()
           
 ShortCrid getShortCrid()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ShortCridType

public ShortCridType(ShortCrid shortCrid)
Create a new Short CRID type

Parameters:
shortCrid -
Method Detail

getShortCrid

public ShortCrid getShortCrid()
Returns:
Returns the Short CRID wrapped by this type

getBytes

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

fromBytes

public static ShortCridType fromBytes(byte[] bytes)
Parse the type from its byte array representation

Parameters:
bytes -
Returns:

getLength

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

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object
See Also:
Object.equals(java.lang.Object)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
See Also:
Object.toString()


Copyright © 2007. All Rights Reserved.