org.jboss.dna.common.text
Interface TextEncoder

All Known Implementing Classes:
Jsr283Encoder, NoOpEncoder, UrlEncoder

public interface TextEncoder

Interface for components that can encode and unencode text.

Author:
Randall Hauch

Method Summary
 java.lang.String decode(java.lang.String encodedText)
          Return the decoded version of an encoded string
 java.lang.String encode(java.lang.String text)
          Returns the encoded version of a string.
 

Method Detail

encode

java.lang.String encode(java.lang.String text)
Returns the encoded version of a string.

Parameters:
text - the text with characters that are to be encoded.
Returns:
the text with the characters encoded as required, or null if the supplied text is null
See Also:
decode(String)

decode

java.lang.String decode(java.lang.String encodedText)
Return the decoded version of an encoded string

Parameters:
encodedText - the encoded text
Returns:
the unecoded form of the text, or null if the supplied node name is also null
See Also:
encode(String)


Copyright © 2008. All Rights Reserved.