jp.bitmeister.asn1.type.useful
Class TeletexString

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.TeletexString
All Implemented Interfaces:
java.lang.Cloneable, Concatenatable<OCTET_STRING>, SizeCountable

public class TeletexString
extends StringType

Represents ASN.1 'TeletexString' type.

An instance of this class represents a 'TeletexString' type data. Characters which can appear in the TeletexString are characters defined in ITU-T recommendation T.61. In this library, ISO-8859-1 encoding is used for this type instead of T.61.

Author:
WATANABE, Jun.

Field Summary
static java.lang.String charsetName
          The name of character set that is used for converting value to String.
 
Fields inherited from class jp.bitmeister.asn1.type.ASN1Type
stringBuilder
 
Constructor Summary
TeletexString()
          Instantiates an empty TeletexString.
TeletexString(java.lang.String value)
          Instantiates an TeletexString and initialize it with the String value.
 
Method Summary
protected  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, 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
 

Field Detail

charsetName

public static java.lang.String charsetName
The name of character set that is used for converting value to String. Default value for this type is 'ISO-8859-1'.

Constructor Detail

TeletexString

public TeletexString()
Instantiates an empty TeletexString.


TeletexString

public TeletexString(java.lang.String value)
Instantiates an TeletexString and initialize it with the String value.

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

charset

protected 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.