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)
TagBuilder
setTagType
in interface TagBuilder
tagType
- type of the tagTagBuilder
public TagBuilder setTagValue(byte[] tagBytes)
TagBuilder
setTagValue
in interface TagBuilder
tagBytes
- tag bytes.TagBuilder
private void validate()
public Tag build()
TagBuilder
build
in interface TagBuilder
Tag
Copyright © 2007–2020 The Apache Software Foundation. All rights reserved.