org.apache.directory.shared.asn1.codec.stateful.examples
Class HexEncoder

java.lang.Object
  extended by org.apache.directory.shared.asn1.codec.stateful.examples.HexEncoder
All Implemented Interfaces:
StatefulEncoder

public class HexEncoder
extends java.lang.Object
implements StatefulEncoder

Document me.

Version:
$Rev: 664290 $
Author:
Apache Directory Project

Constructor Summary
HexEncoder()
           
 
Method Summary
 void encode(java.lang.Object obj)
          Transforms a decoded ByteArray of binary data into a stream of ASCII hex characters.
 void setCallback(EncoderCallback cb)
          Sets the callback of the underlying implementation.
 void setEncoderMonitor(EncoderMonitor monitor)
          Sets the monitor of the underlying implementation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HexEncoder

public HexEncoder()
Method Detail

encode

public void encode(java.lang.Object obj)
            throws EncoderException
Transforms a decoded ByteArray of binary data into a stream of ASCII hex characters.

Specified by:
encode in interface StatefulEncoder
Parameters:
obj -
Throws:
EncoderException

setCallback

public void setCallback(EncoderCallback cb)
Description copied from interface: StatefulEncoder
Sets the callback of the underlying implementation. There is no need for any special callbacks because when encoding we do not need to transform before a value return as we did in the decoder.

Specified by:
setCallback in interface StatefulEncoder
Parameters:
cb - the callback to set on the underlying provider specific encoder

setEncoderMonitor

public void setEncoderMonitor(EncoderMonitor monitor)
Description copied from interface: StatefulEncoder
Sets the monitor of the underlying implementation.

Specified by:
setEncoderMonitor in interface StatefulEncoder
Parameters:
monitor - the monitor to set on the underlying implementation


Copyright © 2003-2009 Apache Software Foundation. All Rights Reserved.