public abstract class TbcdString extends Object implements MAPAsnPrimitive
| Modifier and Type | Field and Description |
|---|---|
protected String |
_PrimitiveName |
protected String |
data |
protected static int |
DIGIT_1_MASK |
protected static int |
DIGIT_2_MASK |
protected int |
maxLength |
protected int |
minLength |
| Constructor and Description |
|---|
TbcdString(int minLength,
int maxLength,
String _PrimitiveName) |
TbcdString(int minLength,
int maxLength,
String _PrimitiveName,
String data) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
_decode(org.mobicents.protocols.asn.AsnInputStream ansIS,
int length) |
void |
decodeAll(org.mobicents.protocols.asn.AsnInputStream ansIS)
Decoding the length and the content of the primitive (the tag has already read)
|
void |
decodeData(org.mobicents.protocols.asn.AsnInputStream ansIS,
int length)
Decoding the content of the primitive (the tag and the length have already read)
|
protected static char |
decodeNumber(int i) |
static String |
decodeString(InputStream ansIS,
int length) |
void |
encodeAll(org.mobicents.protocols.asn.AsnOutputStream asnOs)
Encoding the tag, the length and the content.
|
void |
encodeAll(org.mobicents.protocols.asn.AsnOutputStream asnOs,
int tagClass,
int tag)
Encoding the tag, the length and the content.
|
void |
encodeData(org.mobicents.protocols.asn.AsnOutputStream asnOs)
Encoding the content.
|
protected static int |
encodeNumber(char c) |
static void |
encodeString(OutputStream asnOs,
String data) |
boolean |
equals(Object obj) |
boolean |
getIsPrimitive() |
int |
getTag() |
int |
getTagClass() |
int |
hashCode() |
String |
toString() |
protected static int DIGIT_1_MASK
protected static int DIGIT_2_MASK
protected String data
protected int minLength
protected int maxLength
protected String _PrimitiveName
public TbcdString(int minLength,
int maxLength,
String _PrimitiveName)
public int getTag()
throws MAPException
getTag in interface MAPAsnPrimitiveMAPExceptionpublic int getTagClass()
getTagClass in interface MAPAsnPrimitivepublic boolean getIsPrimitive()
getIsPrimitive in interface MAPAsnPrimitivepublic void decodeAll(org.mobicents.protocols.asn.AsnInputStream ansIS)
throws MAPParsingComponentException
MAPAsnPrimitivedecodeAll in interface MAPAsnPrimitiveansIS - The AsnInputStream that contains the length and the content of the primitiveMAPParsingComponentExceptionpublic void decodeData(org.mobicents.protocols.asn.AsnInputStream ansIS,
int length)
throws MAPParsingComponentException
MAPAsnPrimitivedecodeData in interface MAPAsnPrimitiveansIS - The AsnInputStream that contains the content of the primitivelength - The length of the contentMAPParsingComponentExceptionprotected void _decode(org.mobicents.protocols.asn.AsnInputStream ansIS,
int length)
throws MAPParsingComponentException,
IOException
public void encodeAll(org.mobicents.protocols.asn.AsnOutputStream asnOs)
throws MAPException
MAPAsnPrimitiveencodeAll in interface MAPAsnPrimitiveMAPExceptionpublic void encodeAll(org.mobicents.protocols.asn.AsnOutputStream asnOs,
int tagClass,
int tag)
throws MAPException
MAPAsnPrimitiveencodeAll in interface MAPAsnPrimitiveMAPExceptionpublic void encodeData(org.mobicents.protocols.asn.AsnOutputStream asnOs)
throws MAPException
MAPAsnPrimitiveencodeData in interface MAPAsnPrimitiveMAPExceptionpublic static String decodeString(InputStream ansIS, int length) throws IOException, MAPParsingComponentException
public static void encodeString(OutputStream asnOs, String data) throws MAPException
MAPExceptionprotected static int encodeNumber(char c)
throws MAPException
MAPExceptionprotected static char decodeNumber(int i)
throws MAPParsingComponentException
MAPParsingComponentExceptionCopyright © 2016. All Rights Reserved.