com.googlecode.jinahya.rfc3986
Class PercentBinaryEncoderProxy

java.lang.Object
  extended by com.googlecode.jinahya.rfc3986.PercentBinaryEncoderProxy
All Implemented Interfaces:
InvocationHandler

public class PercentBinaryEncoderProxy
extends Object
implements InvocationHandler

Proxy for org.apache.commons.codec.BinaryEncoder.

 final BinaryEncoder encoder = (BinaryEncoder)
     PercentBinaryEncoderProxy.newInstance();

 // now you can use encoder.encode(String) or encoder.encode(byte[])
 

Author:
Jin Kwon
See Also:
BinaryEncoder (Apache Commons Codec)

Constructor Summary
protected PercentBinaryEncoderProxy()
          Creates a new instance.
 
Method Summary
 Object invoke(Object proxy, Method method, Object[] args)
           
static Object newInstance()
          Creates a new instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentBinaryEncoderProxy

protected PercentBinaryEncoderProxy()
Creates a new instance.

Method Detail

newInstance

public static Object newInstance()
Creates a new instance.

Returns:
a new proxy instance.

invoke

public Object invoke(Object proxy,
                     Method method,
                     Object[] args)
              throws Throwable
Specified by:
invoke in interface InvocationHandler
Throws:
Throwable


Copyright © 2011. All Rights Reserved.