Package org.postgresql.util
Class URLCoder
java.lang.Object
org.postgresql.util.URLCoder
This class helps with URL encoding and decoding. UTF-8 encoding is used by default to make
encoding consistent across the driver, and encoding might be changed via
postgresql.url.encoding
property
Note: this should not be used outside of PostgreSQL source, this is not a public API of the driver.
-
Constructor Summary
-
Method Summary
-
Constructor Details
-
URLCoder
public URLCoder()
-
-
Method Details
-
decode
Decodesx-www-form-urlencoded
string into Java string.- Parameters:
encoded
- encoded value- Returns:
- decoded value
- See Also:
-
encode
Encodes Java string intox-www-form-urlencoded
format- Parameters:
plain
- input value- Returns:
- encoded value
- See Also:
-