org.jaudiotagger.tag.mp4.field
Class Mp4TagByteField

java.lang.Object
  extended by org.jaudiotagger.tag.mp4.Mp4TagField
      extended by org.jaudiotagger.tag.mp4.field.Mp4TagTextField
          extended by org.jaudiotagger.tag.mp4.field.Mp4TagByteField
All Implemented Interfaces:
TagField, TagTextField

public class Mp4TagByteField
extends Mp4TagTextField

Represents a single byte as a number

Usually single byte fields are used as a boolean field, but not always so we dont do this conversion


Field Summary
 
Fields inherited from class org.jaudiotagger.tag.mp4.Mp4TagField
logger
 
Constructor Summary
Mp4TagByteField(Mp4FieldKey id, java.lang.String value)
          Create new field Assume length of 1 which is correct for most but not all byte fields
Mp4TagByteField(Mp4FieldKey id, java.lang.String value, int realDataLength)
          Create new field with known length
Mp4TagByteField(java.lang.String id, java.nio.ByteBuffer raw)
          Construct from rawdata from audio file
 
Method Summary
 Mp4FieldType getFieldType()
           
 
Methods inherited from class org.jaudiotagger.tag.mp4.field.Mp4TagTextField
copyContent, getContent, getEncoding, isBinary, isEmpty, setContent, setEncoding, toString
 
Methods inherited from class org.jaudiotagger.tag.mp4.Mp4TagField
getId, getRawContent, getRawContentDataOnly, isBinary, isCommon
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.jaudiotagger.tag.TagField
getId, getRawContent, isBinary, isCommon
 

Constructor Detail

Mp4TagByteField

public Mp4TagByteField(Mp4FieldKey id,
                       java.lang.String value)
                throws FieldDataInvalidException
Create new field Assume length of 1 which is correct for most but not all byte fields

Parameters:
id -
value - is a String representation of a number
Throws:
FieldDataInvalidException

Mp4TagByteField

public Mp4TagByteField(Mp4FieldKey id,
                       java.lang.String value,
                       int realDataLength)
                throws FieldDataInvalidException
Create new field with known length

Parameters:
id -
value - is a String representation of a number
Throws:
FieldDataInvalidException

Mp4TagByteField

public Mp4TagByteField(java.lang.String id,
                       java.nio.ByteBuffer raw)
                throws java.io.UnsupportedEncodingException
Construct from rawdata from audio file

Parameters:
id -
raw -
Throws:
java.io.UnsupportedEncodingException
Method Detail

getFieldType

public Mp4FieldType getFieldType()
Overrides:
getFieldType in class Mp4TagTextField
Returns:
the field type of this field