public interface ProviderEncoder extends ProviderObject, StatefulEncoder
Modifier and Type | Method and Description |
---|---|
ByteBuffer |
encodeBlocking(Object obj)
Encodes a compiler stub specific ASN.1 message envelope containment tree
into byte array.
|
void |
encodeBlocking(Object lock,
OutputStream out,
Object obj)
Encodes a compiler stub specific ASN.1 message envelope containment tree
onto an output stream.
|
getProvider
encode, setCallback, setEncoderMonitor
void encodeBlocking(Object lock, OutputStream out, Object obj) throws ProviderException
lock
- lock object used to exclusively write to the output streamout
- the OutputStream to encode the message envelope onto.obj
- the top-level message envelope stub instance, i.e. for the
Snacc4J service provider this would be an instance of the
LDAPMessage compiler generated stub class.ProviderException
- to indicate an error while attempting to encode the message
envelope onto the output stream. Provider specific exceptions
encountered while encoding can be held within this subclass
of MultiException.ByteBuffer encodeBlocking(Object obj) throws ProviderException
obj
- the top-level message envelope stub instance, i.e. for the
Snacc4J service provider this would be an instance of the
LDAPMessage compiler generated stub class.ProviderException
- to indicate an error while attempting to encode the message
envelope into a byte buffer. Provider specific exceptions
encountered while encoding can be held within this subclass
of MultiException.Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.