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 file name.
|
encodeCharacter
protected abstract FileName createFileName(String scheme, String rootFile, String path, FileType type)
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 boolean isAbsoluteName(String name)
name
- The file name.public FileName parseUri(VfsComponentContext context, FileName base, String uri) throws FileSystemException
FileNameParser
context
- The component context.base
- The base FileName.uri
- The target file name.FileSystemException
- if an error occurs parsing the URI.Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.