com.googlecode.jinahya.rfc3986
Class PercentDecoder

java.lang.Object
  extended by com.googlecode.jinahya.rfc3986.PercentDecoder

public class PercentDecoder
extends Object

Percent Decoder.

Author:
Jin Kwon
See Also:
Percent Encoding

Constructor Summary
protected PercentDecoder()
          Creates a new instance.
 
Method Summary
static byte[] decode(byte... input)
          Decodes given input.
static void decode(InputStream input, OutputStream output)
          Decodes from input to output.
static byte[] decode(String input)
          Decodes given input.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PercentDecoder

protected PercentDecoder()
Creates a new instance.

Method Detail

decode

public static byte[] decode(String input)
                     throws IOException
Decodes given input.

Parameters:
input - input to decode
Returns:
decoding output
Throws:
IOException - if an I/O error occurs.

decode

public static byte[] decode(byte... input)
                     throws IOException
Decodes given input.

Parameters:
input - input to decode
Returns:
decoding output
Throws:
IOException - if an I/O error occurs.

decode

public static void decode(InputStream input,
                          OutputStream output)
                   throws IOException
Decodes from input to output.

Parameters:
input - input
output - output
Throws:
IOException - if an I/O error occurs.


Copyright © 2011. All Rights Reserved.