org.jboss.portal.common.text
Class FastURLDecoder

java.lang.Object
  extended by org.jboss.portal.common.text.FastURLDecoder
All Implemented Interfaces:
CharEncoder

public class FastURLDecoder
extends java.lang.Object
implements CharEncoder

Version:
$Revision: 1.1 $
Author:
Julien Viet

Constructor Summary
FastURLDecoder(CharToByteEncoder encoder)
           
FastURLDecoder(CharToByteEncoder encoder, boolean strict)
           
 
Method Summary
 void encode(char[] chars, CharWriter writer)
           
 void encode(char[] chars, int off, int len, CharWriter writer)
           
 void encode(char c, CharWriter writer)
           
 void encode(java.lang.CharSequence s, CharWriter writer)
           
 java.lang.String encode(java.lang.String s)
           
static FastURLDecoder getUTF8Instance()
           
static FastURLDecoder getUTF8StrictInstance()
           
 boolean isStrict()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FastURLDecoder

public FastURLDecoder(CharToByteEncoder encoder)

FastURLDecoder

public FastURLDecoder(CharToByteEncoder encoder,
                      boolean strict)
Method Detail

getUTF8Instance

public static FastURLDecoder getUTF8Instance()

getUTF8StrictInstance

public static FastURLDecoder getUTF8StrictInstance()

encode

public void encode(char c,
                   CharWriter writer)
Specified by:
encode in interface CharEncoder

encode

public void encode(char[] chars,
                   int off,
                   int len,
                   CharWriter writer)
Specified by:
encode in interface CharEncoder

encode

public void encode(char[] chars,
                   CharWriter writer)
Specified by:
encode in interface CharEncoder

encode

public void encode(java.lang.CharSequence s,
                   CharWriter writer)
Specified by:
encode in interface CharEncoder

encode

public java.lang.String encode(java.lang.String s)
                        throws java.lang.IllegalArgumentException
Parameters:
s -
Returns:
Throws:
java.lang.IllegalArgumentException
Since:
1.1

isStrict

public boolean isStrict()