Package org.apache.commons.vfs.provider
Class LayeredFileNameParser
java.lang.Object
org.apache.commons.vfs.provider.AbstractFileNameParser
org.apache.commons.vfs.provider.LayeredFileNameParser
- All Implemented Interfaces:
FileNameParser
Implementation for layered filesystems.
Additionally encodes the '!' character.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
encodeCharacter
(char ch) Check if a character needs encoding (%nn)protected String
Pops the root prefix off a URI, which has had the scheme removed.static LayeredFileNameParser
parseUri
(VfsComponentContext context, FileName base, String filename) parses a String into a filename
-
Constructor Details
-
LayeredFileNameParser
public LayeredFileNameParser()
-
-
Method Details
-
getInstance
-
encodeCharacter
public boolean encodeCharacter(char ch) Description copied from interface:FileNameParser
Check if a character needs encoding (%nn)- Specified by:
encodeCharacter
in interfaceFileNameParser
- Overrides:
encodeCharacter
in classAbstractFileNameParser
- Parameters:
ch
- the character- Returns:
- true if character should be encoded
-
parseUri
public FileName parseUri(VfsComponentContext context, FileName base, String filename) throws FileSystemException Description copied from interface:FileNameParser
parses a String into a filename- Throws:
FileSystemException
-
extractRootName
Pops the root prefix off a URI, which has had the scheme removed.- Throws:
FileSystemException
-