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: 191547 $ $Date: 2005-06-20 21:50:28 +0200 (Mon, 20 Jun 2005) $
- Author:
- Adam Murdoch
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
GenericFileNameParser
public GenericFileNameParser()
getInstance
public static GenericFileNameParser getInstance()
- retrieve a instance to this parser
- Returns:
- the parser
extractRootPrefix
protected String extractRootPrefix(String uri,
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(String scheme,
String rootFile,
String path)
- Specified by:
createFileName
in class LocalFileNameParser
Copyright © 2002-2005 The Apache Software Foundation. All Rights Reserved.