public final class URLCoder
extends java.lang.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 java.lang.String |
decode(java.lang.String encoded)
Decodes
x-www-form-urlencoded string into Java string. |
static java.lang.String |
encode(java.lang.String plain)
Encodes Java string into
x-www-form-urlencoded format |
public static java.lang.String decode(java.lang.String encoded)
x-www-form-urlencoded
string into Java string.encoded
- encoded valueURLDecoder.decode(String, String)
public static java.lang.String encode(java.lang.String plain)
x-www-form-urlencoded
formatplain
- input valueURLEncoder.encode(String, String)
Copyright © 2024 PostgreSQL Global Development Group. All rights reserved.