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 TypeMethodDescriptionbooleanencodeCharacter(char ch) Check if a character needs encoding (%nn)protected StringPops the root prefix off a URI, which has had the scheme removed.static LayeredFileNameParserparseUri(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:FileNameParserCheck if a character needs encoding (%nn)- Specified by:
encodeCharacterin interfaceFileNameParser- Overrides:
encodeCharacterin 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:FileNameParserparses a String into a filename- Parameters:
base-filename-- Throws:
FileSystemException
-
extractRootName
Pops the root prefix off a URI, which has had the scheme removed.- Throws:
FileSystemException
-