| java.lang.Object org.apache.commons.vfs.provider.AbstractFileNameParser org.apache.commons.vfs.provider.url.UrlFileNameParser
UrlFileNameParser | public class UrlFileNameParser extends AbstractFileNameParser (Code) | | Implementation for any java.net.url based filesystem.
Composite of URLFilenameParser and GenericFilenameParser
author: imario@apache.org version: $Revision: 480428 $ $Date: 2006-11-28 22:15:24 -0800 (Tue, 28 Nov 2006) $ |
UrlFileNameParser | public UrlFileNameParser()(Code) | | |
countSlashes | protected int countSlashes(String filename)(Code) | | This method counts the slashes after the scheme.
Parameters: filename - nuof slashes |
encodeCharacter | public boolean encodeCharacter(char ch)(Code) | | |
isUrlBased | protected boolean isUrlBased(FileName base, String filename)(Code) | | Guess is the given filename is a url with host or not. VFS treats such urls differently.
A filename is url-based if the base is a URLFileName or there are only 2 slashes
after the scheme.
e.g: http://host/path, file:/path/to/file, file:///path/to/file
|
Methods inherited from org.apache.commons.vfs.provider.AbstractFileNameParser | public boolean encodeCharacter(char ch)(Code)(Java Doc)
|
|
|