public class LayeredFileNameParser extends AbstractFileNameParser
Additionally encodes the '!' character.
| Modifier and Type | Field and Description |
|---|---|
private static LayeredFileNameParser |
INSTANCE |
| Constructor and Description |
|---|
LayeredFileNameParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
encodeCharacter(char ch)
Determines if a character should be encoded.
|
protected java.lang.String |
extractRootName(java.lang.StringBuilder uri)
Pops the root prefix off a URI, which has had the scheme removed.
|
static LayeredFileNameParser |
getInstance()
Returns the Parser.
|
FileName |
parseUri(VfsComponentContext context,
FileName baseFileName,
java.lang.String fileName)
Parses the base and name into a FileName.
|
private static final LayeredFileNameParser INSTANCE
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 baseFileName, java.lang.String fileName) throws FileSystemException
context - The component context.baseFileName - The base FileName.fileName - name The target file name.FileSystemException - if an error occurs.protected java.lang.String extractRootName(java.lang.StringBuilder uri)
throws FileSystemException
uri - string builder which gets modified.FileSystemException - if error occurs.