|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.codec.TwixDecoder
public class TwixDecoder
The TwixDecoder decodes ASN.1 BER encoded PDUs.
| Constructor Summary | |
|---|---|
TwixDecoder(Provider provider,
java.util.Set binaries)
Creates an instance of a Twix Decoder implementation. |
|
| Method Summary | |
|---|---|
void |
decode(java.lang.Object encoded)
Decodes a PDU |
java.lang.Object |
decode(java.lang.Object lock,
java.io.InputStream in)
Decodes a PDU from an input stream into a Snickers compiler generated stub envelope. |
Provider |
getProvider()
Gets the Provider that this Decoder implementation is part of. |
void |
setCallback(org.apache.directory.shared.asn1.codec.stateful.DecoderCallback cb)
Set the callback to call when the PDU has been decoded |
void |
setDecoderMonitor(org.apache.directory.shared.asn1.codec.stateful.DecoderMonitor monitor)
Deprecated. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TwixDecoder(Provider provider,
java.util.Set binaries)
provider - the owning provider.binaries - The binary attributes set| Method Detail |
|---|
public void decode(java.lang.Object encoded)
throws org.apache.directory.shared.asn1.codec.DecoderException
decode in interface org.apache.directory.shared.asn1.codec.stateful.StatefulDecoderencoded - The PDU containing the LdapMessage to decode
DecoderExceptionIf - anything went wrong
org.apache.directory.shared.asn1.codec.DecoderException
public java.lang.Object decode(java.lang.Object lock,
java.io.InputStream in)
throws ProviderException
decode in interface ProviderDecoderlock - Lock object used to exclusively read from the input streamin - The input stream to read and decode PDU bytes from
ProviderException - to indicate an error while attempting to decode the message
envelope onto the output stream. Provider specific exceptions
encountered while decoding can be held within this subclass
of MultiException.public Provider getProvider()
getProvider in interface ProviderObjectpublic void setDecoderMonitor(org.apache.directory.shared.asn1.codec.stateful.DecoderMonitor monitor)
setDecoderMonitor in interface org.apache.directory.shared.asn1.codec.stateful.StatefulDecoderpublic void setCallback(org.apache.directory.shared.asn1.codec.stateful.DecoderCallback cb)
setCallback in interface org.apache.directory.shared.asn1.codec.stateful.StatefulDecodercb - The callback
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||