|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<byte[]>
jp.bitmeister.asn1.type.builtin.OCTET_STRING
public class OCTET_STRING
Represents ASN.1 'OCTET STRING' type.
An instance of this class represents an 'OCTET STRING' type data, and has an
array of byte
value.
Field Summary |
---|
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
stringBuilder |
Constructor Summary | |
---|---|
OCTET_STRING()
Instantiates an empty OCTET_STRING . |
|
OCTET_STRING(byte... value)
Instantiates an OCTET_STRING and initialize it with the array of
byte value. |
|
OCTET_STRING(StringItem item)
Instantiates an OCTET_STRING and initialize it with the
StringItem . |
Method Summary | ||
---|---|---|
|
accept(ASN1Visitor<E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
protected byte[] |
cloneValue()
Creates and returns a copy of the value set to this data. |
|
void |
concatenate(OCTET_STRING data)
Appends the value of the data to the value of this instance. |
|
void |
set(StringItem item)
Sets the StringItem value to the instance. |
|
int |
size()
Returns the measured size of this instance. |
|
boolean |
valueEquals(java.lang.Object other)
Tests if the value of this ASN.1 data equals the value of the other ASN.1 data. |
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType |
---|
clear, clone, hashCode, hasValue, set, value |
Methods inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
equals, instantiate, matches, specification, toString, validate |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public OCTET_STRING()
OCTET_STRING
.
public OCTET_STRING(byte... value)
OCTET_STRING
and initialize it with the array of
byte
value.
value
- The value assigned to the instance.public OCTET_STRING(StringItem item)
OCTET_STRING
and initialize it with the
StringItem
.
item
- The value assigned to the instance.Method Detail |
---|
public void set(StringItem item)
StringItem
value to the instance.
item
- The value assigned to the instance.public void concatenate(OCTET_STRING data)
Concatenatable
concatenate
in interface Concatenatable<OCTET_STRING>
data
- The data that has the value to be appended. The ASN.1 type of
the data
shall be same as this instance.public int size()
SizeCountable
size
in interface SizeCountable
protected byte[] cloneValue()
PrimitiveType
cloneValue
in class PrimitiveType<byte[]>
public boolean valueEquals(java.lang.Object other)
ASN1Type
true
when they have same value even if
their types are different.
valueEquals
in class PrimitiveType<byte[]>
other
- The ASN.1 data which to be compared.
true
when they have same value.public <E extends java.lang.Throwable> void accept(ASN1Visitor<E> visitor) throws E extends java.lang.Throwable
ASN1Type
ASN1Visitor
and calls a visit
method of the
visitor.
accept
in class ASN1Type
visitor
- The visitor.
E extends java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |