public class UrlFileNameParser extends AbstractFileNameParser
| Constructor and Description |
|---|
UrlFileNameParser() |
| Modifier and Type | Method and Description |
|---|---|
protected int |
countSlashes(java.lang.String filename)
This method counts the slashes after the scheme.
|
boolean |
encodeCharacter(char ch)
Check if a character needs encoding (%nn).
|
protected boolean |
isUrlBased(FileName base,
java.lang.String filename)
Guess is the given filename is a url with host or not.
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
java.lang.String filename)
Parse a URI.
|
public 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
context - The component context.base - The base FileName.filename - The target file name.FileSystemException - if an error occursprotected boolean isUrlBased(FileName base, java.lang.String filename)
URLFileName or there are only 2 slashes
after the scheme.protected int countSlashes(java.lang.String filename)
filename - The file name.