org.apache.tuscany.sca.binding.notification.encoding
Class AbstractBrokerEnDeCoder<B extends AbstractBroker>

java.lang.Object
  extended by org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder<B>
      extended by org.apache.tuscany.sca.binding.notification.encoding.AbstractBrokerEnDeCoder<B>
All Implemented Interfaces:
EnDeCoder<B>
Direct Known Subclasses:
BrokerEnDeCoder, NewBrokerEnDeCoder

public abstract class AbstractBrokerEnDeCoder<B extends AbstractBroker>
extends AbstractEnDeCoder<B>


Field Summary
 
Fields inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
registry
 
Constructor Summary
AbstractBrokerEnDeCoder(EncodingRegistry registry)
           
 
Method Summary
 B decode(javax.xml.stream.XMLStreamReader reader)
          Decodes an XML stream to an object.
 void encode(B encodingObject, javax.xml.stream.XMLStreamWriter writer)
          Encodes an object to the specified stream writer.
 
Methods inherited from class org.apache.tuscany.sca.binding.notification.encoding.AbstractEnDeCoder
start, stop
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.tuscany.sca.binding.notification.encoding.EnDeCoder
getEncodingObjectQName, getEncodingObjectType
 

Constructor Detail

AbstractBrokerEnDeCoder

public AbstractBrokerEnDeCoder(EncodingRegistry registry)
Method Detail

encode

public void encode(B encodingObject,
                   javax.xml.stream.XMLStreamWriter writer)
            throws EncodingException
Description copied from interface: EnDeCoder
Encodes an object to the specified stream writer.

Parameters:
encodingObject - Object to be serialized.
writer - Stream writer to which the infoset is serialized.
Throws:
EncodingException - In case of any encoding error.

decode

public B decode(javax.xml.stream.XMLStreamReader reader)
                                throws EncodingException
Description copied from interface: EnDeCoder
Decodes an XML stream to an object.

Parameters:
reader - XML stream from where the encoded XML is read.
Returns:
Encoding object.
Throws:
EncodingException - In case of any encoding error.