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
public class WindowsFileNameParser extends LocalFileNameParser
A parser for Windows file names.
-
-
Constructor Summary
Constructors Constructor Description WindowsFileNameParser()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected FileName
createFileName(java.lang.String scheme, java.lang.String rootFile, java.lang.String path, FileType type)
protected java.lang.String
extractRootPrefix(java.lang.String uri, java.lang.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.LocalFileNameParser
isAbsoluteName, parseUri
-
Methods inherited from class org.apache.commons.vfs2.provider.AbstractFileNameParser
encodeCharacter
-
-
-
-
Constructor Detail
-
WindowsFileNameParser
public WindowsFileNameParser()
-
-
Method Detail
-
extractRootPrefix
protected java.lang.String extractRootPrefix(java.lang.String uri, java.lang.StringBuilder name) throws FileSystemException
Pops the root prefix off a URI, which has had the scheme removed.- Specified by:
extractRootPrefix
in classLocalFileNameParser
- 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
protected FileName createFileName(java.lang.String scheme, java.lang.String rootFile, java.lang.String path, FileType type)
- Specified by:
createFileName
in classLocalFileNameParser
-
-