com.gcapmedia.dab.epg.binary
Class StringType

java.lang.Object
  extended by com.gcapmedia.dab.epg.binary.StringType
All Implemented Interfaces:
Encodable
Direct Known Subclasses:
CridType, LanguageType

public class StringType
extends java.lang.Object
implements Encodable

String data using ISO/IEC 10646 with UTF-8 encoding. TODO The ISO/IEC 10646 characters 0xE000 to xF8FF shall not be included within any binary encoded strings.


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

Constructor Detail

StringType

public StringType(java.lang.String value)
Create a new string type

Parameters:
value - Content value
Method Detail

getBytes

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

fromBytes

public static StringType fromBytes(byte[] bytes)
Parse a string type from its byte array representation


getLength

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

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.