| java.lang.Object org.apache.commons.vfs.provider.UriParser
UriParser | final public class UriParser (Code) | | Utilities for dealing with URIs. See RFC 2396 for details.
author: Adam Murdoch version: $Revision: 480428 $ $Date: 2005-10-13 21:11:33 +0200 (Do, 13 Okt version: 2005) $ |
Field Summary | |
final public static char | TRANS_SEPARATOR The set of valid separators. |
Method Summary | |
public static void | appendEncoded(StringBuffer buffer, String unencodedValue, char[] reserved) Encodes and appends a string to a StringBuffer. | public static void | canonicalizePath(StringBuffer buffer, int offset, int length, FileNameParser fileNameParser) | public static void | checkUriEncoding(String uri) | public static String | decode(String encodedStr) Removes %nn encodings from a string. | public static void | decode(StringBuffer buffer, int offset, int length) Removes %nn encodings from a string. | public 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. | public static String | encode(String decodedStr) Removes %nn encodings from a string. | public static String | encode(String decodedStr, char[] reserved) | public static String[] | encode(String[] strings) | public static String | extractFirstElement(StringBuffer name) Extracts the first element of a path. | public static String | extractQueryString(StringBuffer name) | public static String | extractScheme(String uri) Extracts the scheme from a URI.
Parameters: uri - The URI. | public static String | extractScheme(String uri, StringBuffer buffer) Extracts the scheme from a URI. | public static boolean | fixSeparators(StringBuffer name) Normalises the separators in a name. | public static FileType | normalisePath(StringBuffer path) Normalises a path. |
TRANS_SEPARATOR | final public static char TRANS_SEPARATOR(Code) | | The set of valid separators. These are all converted to the normalised
one. Does not contain the normalised separator
|
appendEncoded | public static void appendEncoded(StringBuffer buffer, String unencodedValue, char[] reserved)(Code) | | Encodes and appends a string to a StringBuffer.
|
encode | public static void encode(StringBuffer buffer, int offset, int length, char[] reserved)(Code) | | Encodes a set of reserved characters in a StringBuffer, using the URI %nn
encoding. Always encodes % characters.
|
encode | public static String encode(String decodedStr)(Code) | | Removes %nn encodings from a string.
|
extractFirstElement | public static String extractFirstElement(StringBuffer name)(Code) | | Extracts the first element of a path.
|
extractScheme | public static String extractScheme(String uri)(Code) | | Extracts the scheme from a URI.
Parameters: uri - The URI. The scheme name. Returns null if there is no scheme. |
extractScheme | public static String extractScheme(String uri, StringBuffer buffer)(Code) | | Extracts the scheme from a URI. Removes the scheme and ':' delimiter from
the front of the URI.
Parameters: uri - The URI. Parameters: buffer - Returns the remainder of the URI. The scheme name. Returns null if there is no scheme. |
fixSeparators | public static boolean fixSeparators(StringBuffer name)(Code) | | Normalises the separators in a name.
|
|
|