|
||||||||||
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
public class 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(EncoderCallback cb)
Set the callback called when the encoding is done. |
void |
setEncoderMonitor(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 EncoderException
encode
in interface StatefulEncoder
obj
- The LdapMessage to encode
EncoderException
- If anything went wrongpublic void setCallback(EncoderCallback cb)
setCallback
in interface StatefulEncoder
cb
- The callback.public void setEncoderMonitor(EncoderMonitor monitor)
setEncoderMonitor
in interface StatefulEncoder
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |