public class IRILib extends Object
| Constructor and Description |
|---|
IRILib() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
containsNonASCII(String string) |
static String |
decode(String string)
Deprecated.
|
static String |
decodeHex(String string)
Decode a string that may have %-encoded sequences.
|
static String |
encodeFileURL(String string)
Encode using the rules for a file: URL.
|
static String |
encodeNonASCII(String string) |
static String |
encodeUriComponent(String string)
Encode using the rules for a component (e.g.
|
static String |
encodeUriPath(String uri)
Encode using the rules for a path (e.g.
|
static String |
filenameToIRI(String fn)
Create a string that is a IRI for the filename.
|
static String |
fileToIRI(File f)
Return a string that is an IRI for the filename.
|
static String |
IRIToFilename(String iri)
Convert a file: IRI to a filename
|
public static String filenameToIRI(String fn)
file:.
public static String encodeUriComponent(String string)
public static String encodeFileURL(String string)
public static String encodeUriPath(String uri)
public static boolean containsNonASCII(String string)
@Deprecated public static String decode(String string)
decodeHex(java.lang.String)public static String decodeHex(String string)
This function will reverse
encodeNonASCII(String),
encodeUriPath(String),
encodeFileURL(String) and
encodeUriComponent(String).
It will not decode '+' used for space (application/x-www-form-urlencoded).
Licenced under the Apache License, Version 2.0