Module net.sourceforge.urin
Package net.sourceforge.urin
Interface Transformer<NON_ENCODED,ENCODED>
-
- Type Parameters:
NON_ENCODED- the class of the decoded objects produced.ENCODED- the class of the encoded objects parsed.
public interface Transformer<NON_ENCODED,ENCODED>An encoder/decoder of URI components.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description NON_ENCODEDdecode(ENCODED rawValue)Parses an encoded URI component.ENCODEDencode(NON_ENCODED nonEncoded)URI encodes a non-encoded object.
-
-
-
Method Detail
-
encode
ENCODED encode(NON_ENCODED nonEncoded)
URI encodes a non-encoded object.- Parameters:
nonEncoded- the non-encoded Object to be encoded.- Returns:
- an Object representing the encoded version.
-
decode
NON_ENCODED decode(ENCODED rawValue) throws ParseException
Parses an encoded URI component.- Parameters:
rawValue- the encoded URI component to decode.- Returns:
- an object representing the decoded URI component.
- Throws:
ParseException- if the givenStringis not a valid URI component.
-
-