class TagBuilderImpl extends Object implements TagBuilder
| Modifier and Type | Field and Description |
|---|---|
static String |
TAG_TYPE_NOT_SET_EXCEPTION |
static String |
TAG_VALUE_NULL_EXCEPTION |
private byte[] |
tagBytes |
private byte |
tagType |
| Constructor and Description |
|---|
TagBuilderImpl() |
| Modifier and Type | Method and Description |
|---|---|
Tag |
build()
Build the tag.
|
TagBuilder |
setTagType(byte tagType)
Set type of the tag.
|
TagBuilder |
setTagValue(byte[] tagBytes)
Set the value of the tag.
|
private void |
validate() |
private byte tagType
private byte[] tagBytes
public static final String TAG_TYPE_NOT_SET_EXCEPTION
public static final String TAG_VALUE_NULL_EXCEPTION
TagBuilderImpl()
public TagBuilder setTagType(byte tagType)
TagBuildersetTagType in interface TagBuildertagType - type of the tagTagBuilderpublic TagBuilder setTagValue(byte[] tagBytes)
TagBuildersetTagValue in interface TagBuildertagBytes - tag bytes.TagBuilderprivate void validate()
public Tag build()
TagBuilderbuild in interface TagBuilderTagCopyright © 2007–2020 The Apache Software Foundation. All rights reserved.