net.grinder.util
Interface StringEscaper

All Known Implementing Classes:
SimpleStringEscaper

public interface StringEscaper

Something that can encode and decode Strings.

Most implementations will be such that for all strings S, S=unescape(escape(S)).

Author:
Philip Aston

Method Summary
 String escape(String unencoded)
          Encode a string.
 String unescape(String encoded)
          Decode a string.
 

Method Detail

escape

String escape(String unencoded)
Encode a string.

Parameters:
unencoded - The un-encoded string.
Returns:
Encoded string.

unescape

String unescape(String encoded)
Decode a string.

Parameters:
encoded - The encoded string.
Returns:
The un-encoded string.


Copyright © 2000-2013. All Rights Reserved.