|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines the methods for encoding each of the ASN.1 types. Encoders which implement this interface may be used to encode any of the ASN1Object data types.
This package also provides the BEREncoder class that can be used to BER encode ASN.1 classes. However an application might chose to use its own encoder class.
This interface thus allows an application to use this package to encode ASN.1 objects using other encoding rules if needed.
Note that LDAP packets are required to be BER encoded. Since this package includes a BER encoder no application provided encoder is needed for building LDAP packets.
Method Summary | |
void |
encode(ASN1Boolean b,
java.io.OutputStream out)
Encode an ASN1Boolean directly into the provided output stream. |
void |
encode(ASN1Identifier id,
java.io.OutputStream out)
Encode an ASN1Identifier directly to a stream. |
void |
encode(ASN1Null n,
java.io.OutputStream out)
Encode an ASN1Null directly to a stream. |
void |
encode(ASN1Numeric n,
java.io.OutputStream out)
Encode an ASN1Numeric directly to a stream. |
void |
encode(ASN1OctetString os,
java.io.OutputStream out)
Encode an ASN1OctetString directly to a stream. |
void |
encode(ASN1Structured c,
java.io.OutputStream out)
Encode an ASN1Structured directly to a stream. |
void |
encode(ASN1Tagged t,
java.io.OutputStream out)
Encode an ASN1Tagged directly to a stream. |
Method Detail |
public void encode(ASN1Boolean b, java.io.OutputStream out) throws java.io.IOException
b
- The ASN1Boolean object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public void encode(ASN1Numeric n, java.io.OutputStream out) throws java.io.IOException
Use a two's complement representation in the fewest number of octets
possible.
Can be used to encode both INTEGER and ENUMERATED values.
n
- The ASN1Numeric object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public void encode(ASN1Null n, java.io.OutputStream out) throws java.io.IOException
n
- The ASN1Null object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public void encode(ASN1OctetString os, java.io.OutputStream out) throws java.io.IOException
os
- The ASN1OctetString object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public void encode(ASN1Structured c, java.io.OutputStream out) throws java.io.IOException
c
- The ASN1Structured object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public void encode(ASN1Tagged t, java.io.OutputStream out) throws java.io.IOException
t
- The ASN1Tagged object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
public void encode(ASN1Identifier id, java.io.OutputStream out) throws java.io.IOException
id
- The ASN1Identifier object to encodeout
- The output stream onto which the ASN.1 object is
to be encodedjava.io.IOException
|
LDAP Classes Implements Java LDAP |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |