mirror of
https://github.com/gbevin/urlencoder.git
synced 2025-04-24 23:07:12 -07:00
Change UrlEncoder to convey utility class semantics.
This commit is contained in:
parent
9dccf4afda
commit
262e9d6d29
1 changed files with 5 additions and 1 deletions
|
@ -16,7 +16,7 @@ import java.util.BitSet;
|
|||
* @author Erik C. Thauvin (erik@thauvin.net)
|
||||
* @since 1.0
|
||||
*/
|
||||
public abstract class UrlEncoder {
|
||||
public final class UrlEncoder {
|
||||
static final BitSet UNRESERVED_URI_CHARS;
|
||||
private static final char[] HEX_DIGITS = "0123456789ABCDEF".toCharArray();
|
||||
|
||||
|
@ -43,6 +43,10 @@ public abstract class UrlEncoder {
|
|||
out.append(HEX_DIGITS[digit & 0x0F]);
|
||||
}
|
||||
|
||||
private UrlEncoder() {
|
||||
// no-op
|
||||
}
|
||||
|
||||
/**
|
||||
* Transforms a provided <code>String</code> URL into a new string,
|
||||
* containing decoded URL characters in the UTF-8 encoding.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue