org.apache.tomcat.util.buf

Class UDecoder


public final class UDecoder
extends java.lang.Object

All URL decoding happens here. This way we can reuse, review, optimize without adding complexity to the buffers. The conversion will modify the original buffer.

Author:
Costin Manolache

Constructor Summary

UDecoder()

Method Summary

String
convert(String str)
String
convert(String str, boolean query)
void
convert(ByteChunk mb)
URLDecode, will modify the source.
void
convert(ByteChunk mb, boolean query)
URLDecode, will modify the source.
void
convert(CharChunk mb)
In-buffer processing - the buffer will be modified Includes converting '+' to ' '.
void
convert(CharChunk mb, boolean query)
In-buffer processing - the buffer will be modified
void
convert(MessageBytes mb)
URLDecode, will modify the source Includes converting '+' to ' '.
void
convert(MessageBytes mb, boolean query)
URLDecode, will modify the source

Constructor Details

UDecoder

public UDecoder()

Method Details

convert

public final String convert(String str)


convert

public final String convert(String str,
                            boolean query)


convert

public void convert(ByteChunk mb)
            throws IOException
URLDecode, will modify the source. Includes converting '+' to ' '.


convert

public void convert(ByteChunk mb,
                    boolean query)
            throws IOException
URLDecode, will modify the source.


convert

public void convert(CharChunk mb)
            throws IOException
In-buffer processing - the buffer will be modified Includes converting '+' to ' '.


convert

public void convert(CharChunk mb,
                    boolean query)
            throws IOException
In-buffer processing - the buffer will be modified


convert

public void convert(MessageBytes mb)
            throws IOException
URLDecode, will modify the source Includes converting '+' to ' '.


convert

public void convert(MessageBytes mb,
                    boolean query)
            throws IOException
URLDecode, will modify the source


Copyright B) 2000-2003 Apache Software Foundation. All Rights Reserved.