Java™ Platform
Standard Ed. 8
compact1, compact2, compact3
java.net
Class URLDecoder
-
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods
| Modifier and Type |
Method |
Description |
static String |
decode(String s) |
Deprecated.
The resulting string may vary depending on the platform's
default encoding. Instead, use the decode(String,String) method
to specify the encoding.
|
static String |
decode(String s,
String enc) |
Decodes a application/x-www-form-urlencoded string using a specific
encoding scheme.
|
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
URLDecoder
public URLDecoder()
-
Method Detail
-
decode
@Deprecated
public static String decode(String s)
Deprecated. The resulting string may vary depending on the platform's
default encoding. Instead, use the decode(String,String) method
to specify the encoding.
Decodes a x-www-form-urlencoded string.
The platform's default encoding is used to determine what characters
are represented by any consecutive sequences of the form
"%xy".
- Parameters:
s - the String to decode
- Returns:
- the newly decoded
String
Java™ Platform
Standard Ed. 8
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2026, Oracle and/or its affiliates. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.