jp.bitmeister.asn1.type.useful
Class GraphicString
java.lang.Object
jp.bitmeister.asn1.type.ASN1Type
jp.bitmeister.asn1.type.PrimitiveType<byte[]>
jp.bitmeister.asn1.type.builtin.OCTET_STRING
jp.bitmeister.asn1.type.StringType
jp.bitmeister.asn1.type.useful.GraphicString
- All Implemented Interfaces:
- java.lang.Cloneable, Concatenatable<OCTET_STRING>, SizeCountable
- Direct Known Subclasses:
- ObjectDescriptor
public class GraphicString
- extends StringType
Represents ASN.1 'GraphicString' type.
An instance of this class represents a 'GraphicString' type data. Characters
which can appear in the GraphicString are all G sets defined in ISO
2375. In this library, ISO-8859-1 encoding is used for this type.
- Author:
- WATANABE, Jun.
|
Field Summary |
static java.lang.String |
charsetName
The name of character set that is used for converting value to
String. |
|
Constructor Summary |
GraphicString()
Instantiates an empty GraphicString. |
GraphicString(java.lang.String value)
Instantiates a GraphicString 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 java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
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'.
GraphicString
public GraphicString()
- Instantiates an empty
GraphicString.
GraphicString
public GraphicString(java.lang.String value)
- Instantiates a
GraphicString and initialize it with the
String value.
- Parameters:
value - The value assigned to the instance.
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.