com.googlecode.jinahya.rfc3986
Class PercentBinaryDecoderProxy

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

public class PercentBinaryDecoderProxy
extends Object
implements InvocationHandler

Proxy for org.apache.commons.codec.BinaryDecoder.


 // create
 final BinaryDecoder decoder = (BinaryDecoder)
     PercentBinaryDecoderProxy.newInstance();
 
 // decode String
 decoder.decode("");
 
 // decode byte array
 decoder.decode(new byte[0]);
 

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

Constructor Summary
protected PercentBinaryDecoderProxy()
          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

PercentBinaryDecoderProxy

protected PercentBinaryDecoderProxy()
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.