org.apache.commons.vfs.provider.local
Class GenericFileNameParser
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileNameParser
org.apache.commons.vfs.provider.local.LocalFileNameParser
org.apache.commons.vfs.provider.local.GenericFileNameParser
- All Implemented Interfaces:
- FileNameParser
public class GenericFileNameParser
- extends LocalFileNameParser
A general-purpose file name parser.
- Version:
- $Revision: 480428 $ $Date: 2006-11-29 07:15:24 +0100 (Mi, 29 Nov 2006) $
- Author:
- Adam Murdoch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
INSTANCE
private static final GenericFileNameParser INSTANCE
GenericFileNameParser
public GenericFileNameParser()
getInstance
public static GenericFileNameParser getInstance()
- retrieve a instance to this parser
- Returns:
- the parser
extractRootPrefix
protected java.lang.String extractRootPrefix(java.lang.String uri,
java.lang.StringBuffer name)
throws FileSystemException
- Pops the root prefix off a URI, which has had the scheme removed.
- Specified by:
extractRootPrefix
in class LocalFileNameParser
- Throws:
FileSystemException
createFileName
protected FileName createFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type)
- Specified by:
createFileName
in class LocalFileNameParser