public abstract class LocalFileNameParser extends AbstractFileNameParser
Constructor and Description |
---|
LocalFileNameParser() |
Modifier and Type | Method and Description |
---|---|
protected abstract FileName |
createFileName(String scheme,
String rootFile,
String path,
FileType type) |
protected abstract String |
extractRootPrefix(String uri,
StringBuilder name)
Pops the root prefix off a URI, which has had the scheme removed.
|
boolean |
isAbsoluteName(String name)
Determines if a name is an absolute file name.
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
String filename)
parses a String into a filename.
|
encodeCharacter
public boolean isAbsoluteName(String name)
name
- The file name.protected abstract String extractRootPrefix(String uri, StringBuilder name) throws FileSystemException
FileSystemException
public FileName parseUri(VfsComponentContext context, FileName base, String filename) throws FileSystemException
FileNameParser
context
- The component context.base
- The base FileName.filename
- The target file name.FileSystemException
- if an error occurs parsing the URI.Copyright © 2002–2015 The Apache Software Foundation. All rights reserved.