FileNameParser
GenericFileNameParser
, WindowsFileNameParser
public abstract class LocalFileNameParser extends AbstractFileNameParser
Constructor | Description |
---|---|
LocalFileNameParser() |
Modifier and Type | Method | 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 filename.
|
encodeCharacter
public LocalFileNameParser()
public 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
FileNameParser
context
- The component context.base
- The base FileName.uri
- The target file name.FileSystemException
- if an error occurs parsing the URI.protected abstract FileName createFileName(java.lang.String scheme, java.lang.String rootFile, java.lang.String path, FileType type)