net.sf.ext.mediamanager.ebml
Class StringElement

java.lang.Object
  extended bynet.sf.ext.mediamanager.ebml.Element
      extended bynet.sf.ext.mediamanager.ebml.BinaryElement
          extended bynet.sf.ext.mediamanager.ebml.StringElement

public class StringElement
extends BinaryElement

Baisc class for handling an EBML string data type. This class encapsulates both UTF and ASCII string types and can use any string type supported by the Java platform.

Author:
John Cannon

Field Summary
 
Fields inherited from class net.sf.ext.mediamanager.ebml.Element
data, dataRead, parent, size, type, typeInfo
 
Constructor Summary
StringElement(byte[] typeID)
          Creates a new instance of StringElement
StringElement(byte[] typeID, java.lang.String encoding)
           
 
Method Summary
 java.lang.String getEncoding()
           
 java.lang.String getValue()
           
 void setValue(java.lang.String value)
           
 
Methods inherited from class net.sf.ext.mediamanager.ebml.BinaryElement
codedSizeLength, getData, getMinByteSize, getMinByteSizeUnsigned, getMinSizeLength, getSize, getType, makeEbmlCode, makeEbmlCodedSize, packInt, packIntUnsigned, setData, setMinSizeLength, setSize, setType, toByteArray
 
Methods inherited from class net.sf.ext.mediamanager.ebml.Element
EBMLCodedSizeLength, EBMLSignedCodedSizeLength, equals, equals, getElementType, getParent, readData, setElementType, setParent, skipData
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringElement

public StringElement(byte[] typeID)
Creates a new instance of StringElement


StringElement

public StringElement(byte[] typeID,
                     java.lang.String encoding)
Method Detail

getValue

public java.lang.String getValue()

setValue

public void setValue(java.lang.String value)

getEncoding

public java.lang.String getEncoding()