org.xfp.filters.codec
Class CodecBinaryDecoder

java.lang.Object
  extended byorg.xfp.AttributeContainer
      extended byorg.xfp.Filter
          extended byorg.xfp.filters.codec.CodecBinaryDecoder

public class CodecBinaryDecoder
extends Filter

Wrapper to the BinaryDecoder's in the Jakarta Commons Codec package.

Version:
$Id: CodecBinaryDecoder.java,v 1.1 2004/03/19 15:56:43 flaviotordini Exp $
Author:
Flavio Tordini

Nested Class Summary
 
Nested classes inherited from class org.xfp.Filter
Filter.OnErrorEnum, Filter.OnLoopErrorEnum
 
Field Summary
 
Fields inherited from class org.xfp.AttributeContainer
name, parentContainer
 
Constructor Summary
CodecBinaryDecoder()
           
 
Method Summary
 byte[] execute(byte[] bytes)
           
 void reset()
          Resets filter status after execution.
 void setClassName(java.lang.String className)
          The class name of the decoder to use.
 
Methods inherited from class org.xfp.Filter
getOnError, initialize, log, newInstance, perform, toString
 
Methods inherited from class org.xfp.AttributeContainer
configureAttributes, disposeAttributes, getAttributes, getFullName, getName, initializeAttributes
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodecBinaryDecoder

public CodecBinaryDecoder()
Method Detail

setClassName

public void setClassName(java.lang.String className)
                  throws java.lang.Exception
The class name of the decoder to use. Must be an implementation of org.apache.commons.codec.BinaryDecoder Read the Jakarta Commons Codec javadocs to discover codec classes. At the time of writing they have: org.apache.commons.codec.binary.Base64 org.apache.commons.codec.binary.Hex

Throws:
java.lang.Exception

execute

public byte[] execute(byte[] bytes)
               throws java.lang.Exception
Throws:
java.lang.Exception

reset

public void reset()
Description copied from class: Filter
Resets filter status after execution. This method is called after execute(), even in case of exceptions. Since a Filter instance may be reused (and actually is), you must use this method to reset all your class members to their default value.

Specified by:
reset in class Filter
See Also:
Filter.reset()


Copyright © 2003-2004 XFP Team. All Rights Reserved.