public final class URLCoder extends Object
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 and Description |
|---|
URLCoder() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decode(String encoded)
Decodes
x-www-form-urlencoded string into Java string. |
static String |
encode(String plain)
Encodes Java string into
x-www-form-urlencoded format |
public static String decode(String encoded)
x-www-form-urlencoded string into Java string.encoded - encoded valueURLDecoder.decode(String, String)public static String encode(String plain)
x-www-form-urlencoded formatplain - input valueURLEncoder.encode(String, String)Copyright © 1997-2020 PostgreSQL Global Development Group. All Rights Reserved.