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 uri)
parses a String into a filename.
|
encodeCharacterpublic boolean isAbsoluteName(String name)
name - The file name.protected abstract String extractRootPrefix(String uri, StringBuilder name) throws FileSystemException
name - the URI to modify.uri - the whole URI for error reporting.FileSystemException - if an error occurs.public FileName parseUri(VfsComponentContext context, FileName base, String uri) throws FileSystemException
FileNameParsercontext - The component context.base - The base FileName.uri - The target file name.FileSystemException - if an error occurs parsing the URI.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.