Class ResourceFileNameParser
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileNameParser
org.apache.commons.vfs2.provider.local.LocalFileNameParser
org.apache.commons.vfs2.provider.local.GenericFileNameParser
org.apache.commons.vfs2.provider.res.ResourceFileNameParser
- All Implemented Interfaces:
FileNameParser
Slightly modified filename parser for resource URIs.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected FileName
createFileName
(String scheme, String rootFile, String path, FileType type) protected String
extractRootPrefix
(String uri, StringBuilder name) Extracts the root prefix from a URI string, which has had the scheme removed.static GenericFileNameParser
retrieve a instance to this parser.Methods inherited from class org.apache.commons.vfs2.provider.local.LocalFileNameParser
isAbsoluteName, parseUri
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileNameParser
encodeCharacter
-
Field Details
-
INSTANCE
-
-
Constructor Details
-
ResourceFileNameParser
public ResourceFileNameParser()
-
-
Method Details
-
getInstance
retrieve a instance to this parser.- Returns:
- the parser
-
extractRootPrefix
Description copied from class:GenericFileNameParser
Extracts the root prefix from a URI string, which has had the scheme removed.- Overrides:
extractRootPrefix
in classGenericFileNameParser
- Parameters:
uri
- the whole URI for error reporting.name
- the URI to modify.- Returns:
- the root prefix extracted.
- Throws:
FileSystemException
- if an error occurs.
-
createFileName
- Overrides:
createFileName
in classGenericFileNameParser
-