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 file name parser for resource URIs.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FileNamecreateFileName(String scheme, String rootFile, String path, FileType type) Creates a FileName.protected StringextractRootPrefix(String uri, StringBuilder name) Extracts the root prefix from a URI string, which has had the scheme removed.static GenericFileNameParserGets the singleton instance.Methods inherited from class org.apache.commons.vfs2.provider.local.LocalFileNameParserisAbsoluteName, parseUriMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileNameParserencodeCharacter
- 
Constructor Details- 
ResourceFileNameParserpublic ResourceFileNameParser()Constructs a new instance.
 
- 
- 
Method Details- 
getInstanceGets the singleton instance.- Returns:
- the singleton instance.
 
- 
createFileNameDescription copied from class:LocalFileNameParserCreates a FileName.- Overrides:
- createFileNamein class- GenericFileNameParser
- Parameters:
- scheme- The scheme.
- rootFile- the root file.
- path- the path.
- type- the file type.
- Returns:
- a FileName.
 
- 
extractRootPrefixDescription copied from class:GenericFileNameParserExtracts the root prefix from a URI string, which has had the scheme removed.- Overrides:
- extractRootPrefixin class- GenericFileNameParser
- Parameters:
- uri- the whole URI for error reporting.
- name- the URI to modify.
- Returns:
- the root prefix extracted.
- Throws:
- FileSystemException- if an error occurs.
 
 
-