jp.bitmeister.asn1.type.useful
Class UTF8String

java.lang.Object
  extended by jp.bitmeister.asn1.type.ASN1Type
      extended by jp.bitmeister.asn1.type.PrimitiveType<byte[]>
          extended by jp.bitmeister.asn1.type.builtin.OCTET_STRING
              extended by jp.bitmeister.asn1.type.StringType
                  extended by jp.bitmeister.asn1.type.useful.UTF8String
All Implemented Interfaces:
java.lang.Cloneable, Concatenatable<OCTET_STRING>, SizeCountable

public class UTF8String
extends StringType

Represents ASN.1 'UTF8String' type.

An instance of this class represents a 'UTF8String' type data. Characters which can appear in the UTF8String are all UTF-8 characters.

Author:
WATANABE, Jun.

Field Summary
 
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type
stringBuilder
 
Constructor Summary
UTF8String()
          Instantiates an empty UTF8String.
UTF8String(java.lang.String value)
          Instantiates a UTF8String and initialize it with the String value.
 
Method Summary
 java.nio.charset.Charset charset()
          Returns the Charset used for encoding and decodiong the value of this data.
protected  java.util.regex.Pattern pattern()
          Returns the Pattern used for checking characters that to be set to this data.
 
Methods inherited from class jp.bitmeister.asn1.type.StringType
accept, checkCharacters, set, stringValue
 
Methods inherited from class jp.bitmeister.asn1.type.builtin.OCTET_STRING
cloneValue, concatenate, hashCode, set, size, valueEquals
 
Methods inherited from class jp.bitmeister.asn1.type.PrimitiveType
clear, clone, 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

UTF8String

public UTF8String()
Instantiates an empty UTF8String.


UTF8String

public UTF8String(java.lang.String value)
Instantiates a UTF8String and initialize it with the String value.

Parameters:
value - The value assigned to the instance.
Method Detail

charset

public java.nio.charset.Charset charset()
Description copied from class: StringType
Returns the Charset used for encoding and decodiong the value of this data.

Specified by:
charset in class StringType
Returns:
The Charset.

pattern

protected java.util.regex.Pattern pattern()
Description copied from class: StringType
Returns the Pattern used for checking characters that to be set to this data.

Specified by:
pattern in class StringType
Returns:
The Pattern.


Copyright © 2012 BitMeister Inc. All Rights Reserved.