public class AsfTagTextField extends AsfTagField implements TagTextField
toWrap
Constructor and Description |
---|
AsfTagTextField(AsfFieldKey field,
String value)
Creates a tag text field and assigns the string value.
|
AsfTagTextField(MetadataDescriptor source)
Creates an instance.
|
AsfTagTextField(String fieldKey,
String value)
Creates a tag text field and assigns the string value.
|
Modifier and Type | Method and Description |
---|---|
String |
getContent()
Returns the content of the field.
|
Charset |
getEncoding()
Returns the current used charset encoding.
|
boolean |
isEmpty()
Determines whether the content of the field is empty.
|
void |
setContent(String content)
Sets the content of the field.
|
void |
setEncoding(Charset encoding)
Sets the charset encoding used by the field.
|
clone, copyContent, getDescriptor, getId, getRawContent, isBinary, isBinary, isCommon, toString
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
copyContent, getId, getRawContent, isBinary, isBinary, isCommon, toString
public AsfTagTextField(AsfFieldKey field, String value)
field
- ASF field to represent.value
- the value to assign.public AsfTagTextField(MetadataDescriptor source)
source
- The metadata descriptor, whose content is published.MetadataDescriptor.TYPE_BINARY
.public String getContent()
TagTextField
getContent
in interface TagTextField
public Charset getEncoding()
TagTextField
getEncoding
in interface TagTextField
public boolean isEmpty()
AsfTagField
isEmpty
in interface TagField
isEmpty
in class AsfTagField
public void setContent(String content)
TagTextField
setContent
in interface TagTextField
content
- fields content.public void setEncoding(Charset encoding)
TagTextField
setEncoding
in interface TagTextField
encoding
- charset.Copyright © 2005–2020 jthink.net. All rights reserved.