public abstract class LocalFileNameParser extends AbstractFileNameParser
| Constructor and Description |
|---|
LocalFileNameParser() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract FileName |
createFileName(java.lang.String scheme,
java.lang.String rootFile,
java.lang.String path,
FileType type) |
protected abstract java.lang.String |
extractRootPrefix(java.lang.String uri,
java.lang.StringBuilder name)
Pops the root prefix off a URI, which has had the scheme removed.
|
boolean |
isAbsoluteName(java.lang.String name)
Determines if a name is an absolute file name.
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
java.lang.String uri)
Parses a String into a file name.
|
encodeCharacterpublic boolean isAbsoluteName(java.lang.String name)
name - The file name.protected abstract java.lang.String extractRootPrefix(java.lang.String uri,
java.lang.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, java.lang.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.