|
||||||||||
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
jp.bitmeister.asn1.type.StringType
public abstract class StringType
The base class for character string types.
This class provides generic interfaces and common methods for classes that represents character string types.
Field Summary |
---|
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type |
---|
stringBuilder |
Constructor Summary | |
---|---|
StringType()
|
Method Summary | ||
---|---|---|
|
accept(ASN1Visitor<R,E> visitor)
Accepts the ASN1Visitor and calls a visit method of the
visitor. |
|
protected abstract java.nio.charset.Charset |
charset()
Returns the Charset used for encoding and decodiong the value of
this data. |
|
protected void |
checkCharacters(java.lang.String value)
Tests if the characters are valid for this type. |
|
protected abstract java.util.regex.Pattern |
pattern()
Returns the Pattern used for checking characters that to be set
to this data. |
|
void |
set(java.lang.String value)
Set the String to this instance. |
|
java.lang.String |
stringValue()
Converts the array of byte value of this instance to a
String and returns it. |
Methods inherited from class jp.bitmeister.asn1.type.builtin.OCTET_STRING |
---|
cloneValue, concatenate, set, size, valueEquals |
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 StringType()
Method Detail |
---|
public void set(java.lang.String value)
String
to this instance. If the type has character
limitation, characters contained in the string are checked before
assignment.
value
- The string value to be assigned.public java.lang.String stringValue()
byte
value of this instance to a
String
and returns it.
protected abstract java.nio.charset.Charset charset()
Charset
used for encoding and decodiong the value of
this data.
Charset
.protected abstract java.util.regex.Pattern pattern()
Pattern
used for checking characters that to be set
to this data.
Pattern
.protected void checkCharacters(java.lang.String value)
value
- true
when the characters is valid.public <R,E extends java.lang.Throwable> R accept(ASN1Visitor<R,E> visitor) throws E extends java.lang.Throwable
ASN1Type
ASN1Visitor
and calls a visit
method of the
visitor.
accept
in class OCTET_STRING
visitor
- The visitor.
E
- When an error occured in the visit
method of the
visitor.
E extends java.lang.Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |