|
||||||||||
| 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 Provider| Method Detail |
|---|
public void encodeBlocking(java.lang.Object lock,
java.io.OutputStream out,
java.lang.Object obj)
throws ProviderException
encodeBlocking in interface ProviderEncoderlock - Not used...out - Not used ...obj - The LdapMessage to encode
ProviderException - If anything went wrong
public java.nio.ByteBuffer encodeBlocking(java.lang.Object obj)
throws ProviderException
encodeBlocking in interface ProviderEncoderobj - The LdapMessage to encode
ProviderException - If anything went wrong
public 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 StatefulEncoderobj - The LdapMessage to encode
EncoderException - If anything went wrongpublic void setCallback(EncoderCallback cb)
setCallback in interface StatefulEncodercb - 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 | |||||||||