java.io.Serializable
public class BerTag
extends java.lang.Object
implements java.io.Serializable
Constructor | Description |
---|---|
BerTag() |
|
BerTag(int identifierClass,
int primitive,
int tagNumber) |
Modifier and Type | Method | Description |
---|---|---|
int |
decode(java.io.InputStream is) |
|
int |
decode(java.io.InputStream is,
java.io.OutputStream os) |
|
int |
decodeAndCheck(java.io.InputStream is) |
Decodes the Identifier from the ByteArrayInputStream and throws an Exception if it is not equal
to itself.
|
int |
encode(java.io.OutputStream reverseOS) |
|
int |
encodeForwards(java.io.OutputStream os) |
|
boolean |
equals(int identifierClass,
int primitive,
int tagNumber) |
|
boolean |
equals(java.lang.Object obj) |
|
int |
hashCode() |
|
java.lang.String |
toString() |
public static final int UNIVERSAL_CLASS
public static final int APPLICATION_CLASS
public static final int CONTEXT_CLASS
public static final int PRIVATE_CLASS
public static final int PRIMITIVE
public static final int CONSTRUCTED
public static final int BOOLEAN_TAG
public static final int INTEGER_TAG
public static final int BIT_STRING_TAG
public static final int OCTET_STRING_TAG
public static final int NULL_TAG
public static final int OBJECT_IDENTIFIER_TAG
public static final int OBJECT_DESCRIPTOR_TAG
public static final int REAL_TAG
public static final int ENUMERATED_TAG
public static final int UTF8_STRING_TAG
public static final int TIME_TAG
public static final int SEQUENCE_TAG
public static final int SET_TAG
public static final int NUMERIC_STRING_TAG
public static final int PRINTABLE_STRING_TAG
public static final int TELETEX_STRING_TAG
public static final int VIDEOTEX_STRING_TAG
public static final int IA5_STRING_TAG
public static final int UTC_TIME_TAG
public static final int GENERALIZED_TIME_TAG
public static final int GRAPHIC_STRING_TAG
public static final int VISIBLE_STRING_TAG
public static final int GENERAL_STRING_TAG
public static final int UNIVERSAL_STRING_TAG
public static final int BMP_STRING_TAG
public static final int DATE_TAG
public static final int TIME_OF_DAY_TAG
public static final int DATE_TIME_TAG
public static final int DURATION_TAG
public static final BerTag SEQUENCE
public static final BerTag SET
public byte[] tagBytes
public int tagClass
public int primitive
public int tagNumber
public BerTag(int identifierClass, int primitive, int tagNumber)
public BerTag()
public int encode(java.io.OutputStream reverseOS) throws java.io.IOException
java.io.IOException
public int encodeForwards(java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int decode(java.io.InputStream is) throws java.io.IOException
java.io.IOException
public int decode(java.io.InputStream is, java.io.OutputStream os) throws java.io.IOException
java.io.IOException
public int decodeAndCheck(java.io.InputStream is) throws java.io.IOException
is
- the input stream to read the identifier from.java.io.IOException
- if an exception occurs reading the identifier from the stream.public boolean equals(int identifierClass, int primitive, int tagNumber)
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object