public class ResourceFileNameParser extends GenericFileNameParser
Constructor and Description |
---|
ResourceFileNameParser() |
Modifier and Type | Method and Description |
---|---|
protected FileName |
createFileName(String scheme,
String rootFile,
String path,
FileType type) |
protected String |
extractRootPrefix(String uri,
StringBuilder name)
Extracts the root prefix from a URI string, which has had the scheme removed.
|
static GenericFileNameParser |
getInstance()
retrieve a instance to this parser.
|
isAbsoluteName, parseUri
encodeCharacter
public static GenericFileNameParser getInstance()
protected String extractRootPrefix(String uri, StringBuilder name) throws FileSystemException
GenericFileNameParser
extractRootPrefix
in class GenericFileNameParser
uri
- the whole URI for error reporting.name
- the URI to modify.FileSystemException
- if an error occurs.protected FileName createFileName(String scheme, String rootFile, String path, FileType type)
createFileName
in class GenericFileNameParser
Copyright © 2002–2020 The Apache Software Foundation. All rights reserved.