|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.codec.TwixEncoder
Twix LDAP BER provider's encoder.
Constructor Summary | |
TwixEncoder(Provider provider)
Creates an instance of a Twix Encoder implementation. |
Method Summary | |
void |
encode(java.lang.Object obj)
Encodes a LdapMessage, and calls the callback |
java.nio.ByteBuffer |
encodeBlocking(java.lang.Object obj)
Encodes a LdapMessage, and return a ByteBuffer containing the resulting PDU |
void |
encodeBlocking(java.lang.Object lock,
java.io.OutputStream out,
java.lang.Object obj)
Encodes a LdapMessage, and calls the callback. |
byte[] |
encodeToArray(java.lang.Object obj)
Encodes a LdapMessage, and return a byte array containing the resulting PDU |
Provider |
getProvider()
Gets the Provider associated with this SPI implementation object. |
void |
setCallback(org.apache.directory.shared.asn1.codec.stateful.EncoderCallback cb)
Set the callback called when the encoding is done. |
void |
setEncoderMonitor(org.apache.directory.shared.asn1.codec.stateful.EncoderMonitor monitor)
Deprecated. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public TwixEncoder(Provider provider)
provider
- The associated ProviderMethod Detail |
public void encodeBlocking(java.lang.Object lock, java.io.OutputStream out, java.lang.Object obj) throws ProviderException
encodeBlocking
in interface ProviderEncoder
lock
- Not used...out
- Not used ...obj
- The LdapMessage to encode
ProviderException
- If anything went wrongpublic java.nio.ByteBuffer encodeBlocking(java.lang.Object obj) throws ProviderException
encodeBlocking
in interface ProviderEncoder
obj
- The LdapMessage to encode
ProviderException
- If anything went wrongpublic byte[] encodeToArray(java.lang.Object obj) throws ProviderException
obj
- The LdapMessage to encode
ProviderException
- If anything went wrongpublic Provider getProvider()
getProvider
in interface ProviderObject
public void encode(java.lang.Object obj) throws org.apache.directory.shared.asn1.codec.EncoderException
encode
in interface org.apache.directory.shared.asn1.codec.stateful.StatefulEncoder
obj
- The LdapMessage to encode
org.apache.directory.shared.asn1.codec.EncoderException
- If anything went wrongpublic void setCallback(org.apache.directory.shared.asn1.codec.stateful.EncoderCallback cb)
setCallback
in interface org.apache.directory.shared.asn1.codec.stateful.StatefulEncoder
cb
- The callback.public void setEncoderMonitor(org.apache.directory.shared.asn1.codec.stateful.EncoderMonitor monitor)
setEncoderMonitor
in interface org.apache.directory.shared.asn1.codec.stateful.StatefulEncoder
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |