| org.apache.harmony.jndi.provider.ldap.asn1.ASN1Encodable
All known Subclasses: org.apache.harmony.jndi.provider.ldap.event.PersistentSearchControl, org.apache.harmony.jndi.provider.ldap.mock.EncodableLdapResult, org.apache.harmony.jndi.provider.ldap.LdapAttribute, org.apache.harmony.jndi.provider.ldap.LdapMessage, org.apache.harmony.jndi.provider.ldap.CompareOp, org.apache.harmony.jndi.provider.ldap.Filter, org.apache.harmony.jndi.provider.ldap.ModifyOp, org.apache.harmony.jndi.provider.ldap.LdapControl, org.apache.harmony.jndi.provider.ldap.mock.BindResponse, org.apache.harmony.jndi.provider.ldap.SearchOp, org.apache.harmony.jndi.provider.ldap.ModifyDNOp, org.apache.harmony.jndi.provider.ldap.AddOp, org.apache.harmony.jndi.provider.ldap.DeleteOp, org.apache.harmony.jndi.provider.ldap.ExtendedOp,
ASN1Encodable | public interface ASN1Encodable (Code) | | This interface is responsible for encoding data according to ASN.1 type schema.
Below is type mapping between ASN.1 and Java.
Note: the mapping of SEQUENCE and CHOICE is supported only when using
corresponding wrapped class ASN1SequenceWrap and ASN1ChoiceWrap
ASN.1 Java
BOOLEAN Boolean
INTEGER byte[] (encode: ASN1Integer.fromIntValue(int value) decode: ASN1Integer.toIntValue(Object decoded))
OCTET STRING byte[] (encode: Utils.getBytes(String s) decode: getString(byte[] bytes))
ENUMERATED byte[] (encode: ASN1Integer.fromIntValue(int value) decode: ASN1Integer.toIntValue(Object decoded))
SEQUENCE Object[] or ASN1Encodable
SEQUENCE OF java.util.List
SET OF java.util.List
CHOICE Object[] or ChosenValue
See Also: org.apache.harmony.jndi.provider.ldap.asn1.ASN1ChoiceWrap See Also: org.apache.harmony.jndi.provider.ldap.asn1.ASN1SequenceWrap |
encodeValues | public void encodeValues(Object[] values)(Code) | | Encodes data into values . It is caller's responsibility
to create values array, and the size of
values is defined by the ASN.1 type schema which is to be
encoded. Classes realize this interface need to fill encoded value into
the values array.
Parameters: values - |
|
|