public class GenericURLFileNameParser extends HostFileNameParser
Parses the url into user/password/host/port/path/queryString.
HostFileNameParser.Authority| Constructor and Description |
|---|
GenericURLFileNameParser(int defaultPort) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodeCharacter(char ch)
Check if a character needs encoding (%nn).
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
java.lang.String fileName)
Parses a String into a file name.
|
extractHostName, extractPort, extractToPath, extractUserInfo, getDefaultPortpublic boolean encodeCharacter(char ch)
FileNameParserencodeCharacter in interface FileNameParserencodeCharacter in class AbstractFileNameParserch - the characterpublic FileName parseUri(VfsComponentContext context, FileName base, java.lang.String fileName) throws FileSystemException
FileNameParserparseUri in interface FileNameParserparseUri in class HostFileNameParsercontext - The component context.base - The base FileName.fileName - The target file name.FileSystemException - if an error occurs parsing the URI.