|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.objsys.asn1j.runtime.Asn1Type
com.objsys.asn1j.runtime.Asn1BitString
com.objsys.asn1j.runtime.Asn1Xer_ABSTRACT_SYNTAX_property
public class Asn1Xer_ABSTRACT_SYNTAX_property
Field Summary | |
---|---|
static int |
handles_invalid_encoding
|
Fields inherited from class com.objsys.asn1j.runtime.Asn1BitString |
---|
ASN1VALUE, BITS, HEX, HEXBIN, mStringFormat, numbits, TAG, value |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OpenType, PrintableString, REAL, RelativeOID, SEQUENCE, SET, T61String, TeletexString, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString |
Constructor Summary | |
---|---|
Asn1Xer_ABSTRACT_SYNTAX_property()
This constructor creates an empty bit string that can be used in a decode method call to receive a bit string value. |
|
Asn1Xer_ABSTRACT_SYNTAX_property(java.util.BitSet bitSet)
This constructor initializes the bit string value from the given BitSet object. |
|
Asn1Xer_ABSTRACT_SYNTAX_property(boolean[] bitValues)
This constructor initializes the bit string value from the given boolean array. |
|
Asn1Xer_ABSTRACT_SYNTAX_property(int numbits_,
byte[] data)
This constructor initializes the bit string value with the given number of bits and data. |
|
Asn1Xer_ABSTRACT_SYNTAX_property(java.lang.String value_)
This constructor parses the given ASN.1 value text (either a binary or hex data string) and assigns the values to the internal bit string. |
Method Summary | |
---|---|
void |
decode(java.lang.Object reader_,
java.io.InputStream inputStream)
This method declaration is the signature of the standard XML Encoding Rules (XER) decode method. |
void |
decode(java.lang.Object reader_,
java.lang.String xmlURI)
This method declaration is the signature of the standard XML Encoding Rules (XER) decode method. |
void |
encode(Asn1XerEncoder buffer,
java.lang.String elemName)
This method encodes ASN.1 bit string type using the XML encoding rules (XER). |
Asn1XerSaxHandler |
getSaxHandler()
|
Methods inherited from class com.objsys.asn1j.runtime.Asn1BitString |
---|
clear, decode, decode, decode, decodeXER, decodeXML, encode, encode, encode, encode, encode, encode, encode, encode, equals, equals, getLength, isNamedBitStr, isSet, set, set, toBoolArray, toHexString, toString |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, encode, encode, encode, encodeAttribute, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int handles_invalid_encoding
Constructor Detail |
---|
public Asn1Xer_ABSTRACT_SYNTAX_property()
public Asn1Xer_ABSTRACT_SYNTAX_property(int numbits_, byte[] data)
numbits_
- Number of bitsdata
- Binary bit string contentspublic Asn1Xer_ABSTRACT_SYNTAX_property(boolean[] bitValues)
bitValues
- The boolean arraypublic Asn1Xer_ABSTRACT_SYNTAX_property(java.lang.String value_) throws Asn1ValueParseException
value_
- The ASN.1 value specification text
Asn1ValueParseException
public Asn1Xer_ABSTRACT_SYNTAX_property(java.util.BitSet bitSet)
bitSet
- Java BitSet objectMethod Detail |
---|
public void decode(java.lang.Object reader_, java.lang.String xmlURI) throws Asn1Exception, java.io.IOException
Asn1Type
decode
in interface Asn1TypeIF
decode
in class Asn1Type
reader_
- XML reader objectxmlURI
- URI of a source
Asn1Exception
- Thrown, if operation is failed.
java.io.IOException
- An IO exception from the parser, possibly from a
byte stream or character stream supplied by the
application.public void decode(java.lang.Object reader_, java.io.InputStream inputStream) throws Asn1Exception, java.io.IOException
Asn1Type
decode
in interface Asn1TypeIF
decode
in class Asn1Type
reader_
- XML reader objectinputStream
- Input byte stream object
Asn1Exception
- Thrown, if operation is failed.
java.io.IOException
- An IO exception from the parser, possibly from a
byte stream or character stream supplied by the
application.public Asn1XerSaxHandler getSaxHandler()
public void encode(Asn1XerEncoder buffer, java.lang.String elemName) throws Asn1Exception, java.io.IOException
Asn1BitString
encode
in interface Asn1TypeIF
encode
in class Asn1BitString
buffer
- Encode message buffer objectelemName
- XML element name used to wrap string
Asn1Exception
- Thrown, if operation is failed.
java.io.IOException
- Any exception thrown by the underlying stream.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |