public class LayeredFileNameParser extends AbstractFileNameParser
Additionally encodes the '!' character.
| Constructor and Description |
|---|
LayeredFileNameParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodeCharacter(char ch)
Determines if a character should be encoded.
|
protected String |
extractRootName(StringBuilder uri)
Pops the root prefix off a URI, which has had the scheme removed.
|
static LayeredFileNameParser |
getInstance()
Return the Parser.
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
String filename)
Parse the base and name into a FileName.
|
public static LayeredFileNameParser getInstance()
public boolean encodeCharacter(char ch)
encodeCharacter in interface FileNameParserencodeCharacter in class AbstractFileNameParserch - The character to check.public FileName parseUri(VfsComponentContext context, FileName base, String filename) throws FileSystemException
context - The component context.base - The base FileName.filename - The target file name.FileSystemException - if an error occurs.protected String extractRootName(StringBuilder uri) throws FileSystemException
uri - string builder which gets modified.FileSystemException - if error occurs.Copyright © 2002–2017 The Apache Software Foundation. All rights reserved.