public class ResourceFileNameParser extends GenericFileNameParser
| Constructor and Description |
|---|
ResourceFileNameParser()
Constructs a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
protected FileName |
createFileName(String scheme,
String rootFile,
String path,
FileType type)
Creates a FileName.
|
protected String |
extractRootPrefix(String uri,
StringBuilder name)
Extracts the root prefix from a URI string, which has had the scheme removed.
|
static GenericFileNameParser |
getInstance()
Gets the singleton instance.
|
isAbsoluteName, parseUriencodeCharacterpublic ResourceFileNameParser()
public static GenericFileNameParser getInstance()
protected FileName createFileName(String scheme, String rootFile, String path, FileType type)
LocalFileNameParsercreateFileName in class GenericFileNameParserscheme - The scheme.rootFile - the root file.path - the path.type - the file type.protected String extractRootPrefix(String uri, StringBuilder name) throws FileSystemException
GenericFileNameParserextractRootPrefix in class GenericFileNameParseruri - the whole URI for error reporting.name - the URI to modify.FileSystemException - if an error occurs.Copyright © 2002–2025 The Apache Software Foundation. All rights reserved.