Class WindowsFileNameParser
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileNameParser
org.apache.commons.vfs2.provider.local.LocalFileNameParser
org.apache.commons.vfs2.provider.local.WindowsFileNameParser
- All Implemented Interfaces:
- FileNameParser
A parser for Windows file names.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected FileNamecreateFileName(String scheme, String rootFile, String path, FileType type) Creates a FileName.protected StringextractRootPrefix(String uri, StringBuilder name) Pops the root prefix off a URI, which has had the scheme removed.Methods inherited from class org.apache.commons.vfs2.provider.local.LocalFileNameParserisAbsoluteName, parseUriMethods inherited from class org.apache.commons.vfs2.provider.AbstractFileNameParserencodeCharacter
- 
Constructor Details- 
WindowsFileNameParserpublic WindowsFileNameParser()Constructs a new instance.
 
- 
- 
Method Details- 
createFileNameDescription copied from class:LocalFileNameParserCreates a FileName.- Specified by:
- createFileNamein class- LocalFileNameParser
- Parameters:
- scheme- The scheme.
- rootFile- the root file.
- path- the path.
- type- the file type.
- Returns:
- a FileName.
 
- 
extractRootPrefixPops the root prefix off a URI, which has had the scheme removed.- Specified by:
- extractRootPrefixin class- LocalFileNameParser
- Parameters:
- uri- the whole URI for error reporting.
- name- the URI to modify.
- Returns:
- the root prefix extracted.
- Throws:
- FileSystemException- if an error occurs.
 
 
-