|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1Type com.objsys.asn1j.runtime.Asn1BitString com.objsys.asn1j.runtime.Asn1Xml__ABSTRACT_SYNTAX_property_default_Type
public class Asn1Xml__ABSTRACT_SYNTAX_property_default_Type
Field Summary | |
---|---|
static int |
handles_invalid_encodings
|
Fields inherited from class com.objsys.asn1j.runtime.Asn1BitString |
---|
ASN1VALUE, BITS, HEX, HEXBIN, mStringFormat, numbits, TAG, trimZeroBits, value |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString |
Constructor Summary | |
---|---|
Asn1Xml__ABSTRACT_SYNTAX_property_default_Type()
This constructor creates an empty bit string that can be used in a decode method call to receive a bit string value. |
|
Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(java.util.BitSet bitSet)
This constructor initializes the bit string value from the given BitSet object. |
|
Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(boolean[] bitValues)
This constructor initializes the bit string value from the given boolean array. |
|
Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(byte[] data)
This constructor initializes the bit string value with the given bytes, using all 8 bits of every byte. |
|
Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(int numbits_,
byte[] data)
This constructor initializes the bit string value with the given number of bits and data. |
|
Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(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(Asn1BerDecodeBuffer buffer,
boolean explicit,
int implicitLength)
This method decodes an ASN.1 bit string value using the BER or DER encoding rules. |
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 |
decodeXML(java.lang.String buffer,
java.lang.String attrs)
This method decodes an ASN.1 BIT STRING using the XML schema encoding rules. |
int |
encode(Asn1BerEncodeBuffer buffer,
boolean explicit)
This method encodes an ASN.1 bit string value using the BER or DER encoding rules. |
void |
encode(Asn1XmlEncodeBuffer buffer)
|
void |
encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes ASN.1 bit string type using the XML Encoding as specified in the XML schema standard. |
Asn1XerSaxHandler |
getSaxHandler()
|
Methods inherited from class com.objsys.asn1j.runtime.Asn1BitString |
---|
clear, decode, decode, decode, decode, decode, decode, decode, decodeXER, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, encode, equals, equals, getLength, hashCode, isNamedBitStr, isSet, set, set, toBoolArray, toHexString, toInputStream, toString |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, encode, encode, equals, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int handles_invalid_encodings
Constructor Detail |
---|
public Asn1Xml__ABSTRACT_SYNTAX_property_default_Type()
public Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(byte[] data)
data
- Binary bit string contentspublic Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(int numbits_, byte[] data)
numbits_
- Number of bitsdata
- Binary bit string contentspublic Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(boolean[] bitValues)
bitValues
- The boolean arraypublic Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(java.lang.String value_) throws Asn1ValueParseException
Asn1ValueParseException
public Asn1Xml__ABSTRACT_SYNTAX_property_default_Type(java.util.BitSet bitSet)
bitSet
- Java BitSet objectMethod Detail |
---|
public void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength) throws Asn1Exception, java.io.IOException
Asn1BitString
decode
in interface Asn1TypeIF
decode
in class Asn1BitString
buffer
- Decode message buffer objectexplicit
- Flag indicating element is explicitly taggedimplicitLength
- Length of contents if implicit
Asn1Exception
java.io.IOException
public int encode(Asn1BerEncodeBuffer buffer, boolean explicit) throws Asn1Exception
Asn1BitString
encode
in interface Asn1TypeIF
encode
in class Asn1BitString
buffer
- Encode message buffer objectexplicit
- Flag indicating explicit tagging should be done
Asn1Exception
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 void decodeXML(java.lang.String buffer, java.lang.String attrs) throws Asn1Exception
Asn1BitString
decodeXML
in interface Asn1TypeIF
decodeXML
in class Asn1BitString
buffer
- String containing data to be decodedattrs
- Attributes string from element tag
Asn1Exception
public Asn1XerSaxHandler getSaxHandler()
public void encode(Asn1XmlEncodeBuffer buffer) throws Asn1Exception, java.io.IOException
Asn1Exception
java.io.IOException
public void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix) throws Asn1Exception, java.io.IOException
Asn1BitString
encode
in class Asn1BitString
buffer
- Encode message buffer objectelemName
- XML element name used to wrap stringnsPrefix
- XML element namespace prefix
Asn1Exception
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |