com.gcapmedia.dab.epg.binary
Class CData

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

public class CData
extends java.lang.Object
implements Encodable

Author:
ben.poor

Field Summary
static byte TAG
          CDATA tag
 
Constructor Summary
CData(java.lang.String value)
          Create new CDATA content
CData(StringType value)
          Create new CDATA content
 
Method Summary
 boolean equals(java.lang.Object obj)
           
static CData fromBytes(byte[] bytes)
          Parse a CDATA object from its byte array representation
static CData fromBytes(byte[] bytes, TokenTable tokens)
          Parse a CDATA object from its byte array representation
 byte[] getBytes()
           
 int getLength()
           
 StringType getString()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

TAG

public static final byte TAG
CDATA tag

See Also:
Constant Field Values
Constructor Detail

CData

public CData(StringType value)
Create new CDATA content

Parameters:
value - CDATA content value

CData

public CData(java.lang.String value)
Create new CDATA content

Parameters:
value - CDATA content value
Method Detail

getBytes

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

getLength

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

getString

public StringType getString()
Returns:
Returns the CDATA content

fromBytes

public static CData fromBytes(byte[] bytes)
Parse a CDATA object from its byte array representation


fromBytes

public static CData fromBytes(byte[] bytes,
                              TokenTable tokens)
Parse a CDATA object from its byte array representation


toString

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

equals

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


Copyright © 2007. All Rights Reserved.