public class AsfTagField extends Object implements TagField, Cloneable
MetadataDescriptor
and provides access
to it. Modifier and Type | Field and Description |
---|---|
protected MetadataDescriptor |
toWrap
This descriptor is wrapped.
|
Constructor and Description |
---|
AsfTagField(AsfFieldKey field)
Creates a tag field.
|
AsfTagField(MetadataDescriptor source)
Creates an instance.
|
AsfTagField(String fieldKey)
Creates a tag field.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone() |
void |
copyContent(TagField field)
This method copies the data of the given field to the current data.
|
MetadataDescriptor |
getDescriptor()
Returns the wrapped metadata descriptor (which actually stores the
values).
|
String |
getId()
Returns the Id of the represented tag field.
This value should uniquely identify a kind of tag data, like title. |
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 method returns false . |
void |
isBinary(boolean value)
This method will set the field to represent binary data.
Some implementations may support conversions. As of now (Octobre 2005) there is no implementation really using this method to perform useful operations. |
boolean |
isCommon()
Identifies a field to be of common use.
Some software may differ between common and not common fields. |
boolean |
isEmpty()
Determines whether the content of the field is empty.
|
String |
toString()
This method returns a human readable description of the fields contents.
For text fields it should be the text itself. |
protected MetadataDescriptor toWrap
public AsfTagField(AsfFieldKey field)
field
- the ASF field that should be represented.public AsfTagField(MetadataDescriptor source)
source
- The descriptor which should be represented as a
TagField
.public AsfTagField(String fieldKey)
fieldKey
- The field identifier to use.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
public void copyContent(TagField field)
copyContent
in interface TagField
field
- The field containing the data to be taken.public MetadataDescriptor getDescriptor()
public String getId()
AbstractTag
will use the "id" to summarize multiple
fields.public byte[] getRawContent()
getRawContent
in interface TagField
public boolean isBinary()
false
.public void isBinary(boolean value)
public boolean isCommon()
public boolean isEmpty()
public String toString()
Copyright © 2005–2020 jthink.net. All rights reserved.