entagged.audioformats.mp4.util
Class Mp4TagBinaryField
java.lang.Object
entagged.audioformats.mp4.util.Mp4TagField
entagged.audioformats.mp4.util.Mp4TagBinaryField
- All Implemented Interfaces:
- TagField
- Direct Known Subclasses:
- Mp4TagCoverField
public class Mp4TagBinaryField
- extends Mp4TagField
Fields inherited from class entagged.audioformats.mp4.util.Mp4TagField |
id |
Method Summary |
protected void |
build(byte[] raw)
|
void |
copyContent(TagField field)
This method copies the data of the given filed to the current data.
|
byte[] |
getData()
|
byte[] |
getRawContent()
This method delivers the binary representation of the fields data in
order to be directly written to the file.
|
boolean |
isBinary()
Determines whether the represented field contains (is made up of) binary
data, instead of text data.
Software can identify fields to be displayed because they are human
readable if this mehtod returns false . |
boolean |
isEmpty()
Determines whether the content of the field is empty.
|
void |
setData(byte[] d)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface entagged.audioformats.generic.TagField |
toString |
dataBytes
protected byte[] dataBytes
isBinary
protected boolean isBinary
Mp4TagBinaryField
public Mp4TagBinaryField(String id)
Mp4TagBinaryField
public Mp4TagBinaryField(String id,
byte[] raw)
throws UnsupportedEncodingException
- Throws:
UnsupportedEncodingException
getRawContent
public byte[] getRawContent()
- Description copied from interface:
TagField
- This method delivers the binary representation of the fields data in
order to be directly written to the file.
- Returns:
- Binary data representing the current tag field.
build
protected void build(byte[] raw)
- Specified by:
build
in class Mp4TagField
isBinary
public boolean isBinary()
- Description copied from interface:
TagField
- Determines whether the represented field contains (is made up of) binary
data, instead of text data.
Software can identify fields to be displayed because they are human
readable if this mehtod returns false
.
- Returns:
true
if field represents binary data (not human
readable).
isEmpty
public boolean isEmpty()
- Description copied from interface:
TagField
- Determines whether the content of the field is empty.
- Returns:
true
if no data is stored (or empty String).
getData
public byte[] getData()
setData
public void setData(byte[] d)
copyContent
public void copyContent(TagField field)
- Description copied from interface:
TagField
- This method copies the data of the given filed to the current data.
- Parameters:
field
- The field containing the data to be taken.
Copyright © 2007-2008. All Rights Reserved.