|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.UriParser
Utilities for dealing with URIs. See RFC 2396 for details.
Field Summary | |
static char |
TRANS_SEPARATOR
The set of valid separators. |
Method Summary | |
static void |
appendEncoded(StringBuffer buffer,
String unencodedValue,
char[] reserved)
Encodes and appends a string to a StringBuffer. |
static void |
canonicalizePath(StringBuffer buffer,
int offset,
int length,
FileNameParser fileNameParser)
|
static void |
checkUriEncoding(String uri)
|
static String |
decode(String encodedStr)
Removes %nn encodings from a string. |
static void |
decode(StringBuffer buffer,
int offset,
int length)
Removes %nn encodings from a string. |
static String |
encode(String decodedStr)
Removes %nn encodings from a string. |
static String[] |
encode(String[] strings)
|
static void |
encode(StringBuffer buffer,
int offset,
int length,
char[] reserved)
Encodes a set of reserved characters in a StringBuffer, using the URI %nn encoding. |
static String |
encode(String decodedStr,
char[] reserved)
|
static String |
extractFirstElement(StringBuffer name)
Extracts the first element of a path. |
static String |
extractQueryString(StringBuffer name)
|
static String |
extractScheme(String uri)
Extracts the scheme from a URI. |
static String |
extractScheme(String uri,
StringBuffer buffer)
Extracts the scheme from a URI. |
static boolean |
fixSeparators(StringBuffer name)
Normalises the separators in a name. |
static FileType |
normalisePath(StringBuffer path)
Normalises a path. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final char TRANS_SEPARATOR
Method Detail |
public static String extractFirstElement(StringBuffer name)
public static FileType normalisePath(StringBuffer path) throws FileSystemException
FileSystemException
fixSeparators(java.lang.StringBuffer)
public static boolean fixSeparators(StringBuffer name)
public static String extractScheme(String uri)
uri
- The URI.
public static String extractScheme(String uri, StringBuffer buffer)
uri
- The URI.buffer
- Returns the remainder of the URI.
public static String decode(String encodedStr) throws FileSystemException
FileSystemException
public static void decode(StringBuffer buffer, int offset, int length) throws FileSystemException
FileSystemException
public static void appendEncoded(StringBuffer buffer, String unencodedValue, char[] reserved)
public static void encode(StringBuffer buffer, int offset, int length, char[] reserved)
public static String encode(String decodedStr)
public static String encode(String decodedStr, char[] reserved)
public static String[] encode(String[] strings)
public static void checkUriEncoding(String uri) throws FileSystemException
FileSystemException
public static void canonicalizePath(StringBuffer buffer, int offset, int length, FileNameParser fileNameParser) throws FileSystemException
FileSystemException
public static String extractQueryString(StringBuffer name)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |