Package org.apache.commons.vfs2.provider
Class LayeredFileNameParser
java.lang.Object
org.apache.commons.vfs2.provider.AbstractFileNameParser
org.apache.commons.vfs2.provider.LayeredFileNameParser
- All Implemented Interfaces:
- FileNameParser
Implementation for layered file systems.
 
Additionally encodes the '!' character.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanencodeCharacter(char ch) Determines if a character should be encoded.protected StringPops the root prefix off a URI, which has had the scheme removed.static LayeredFileNameParserGets the singleton instance.parseUri(VfsComponentContext context, FileName baseFileName, String fileName) Parses the base and name into a FileName.
- 
Constructor Details- 
LayeredFileNameParserpublic LayeredFileNameParser()Constructs a new instance.
 
- 
- 
Method Details- 
getInstanceGets the singleton instance.- Returns:
- the singleton instance.
 
- 
encodeCharacterDetermines if a character should be encoded.- Specified by:
- encodeCharacterin interface- FileNameParser
- Overrides:
- encodeCharacterin class- AbstractFileNameParser
- Parameters:
- ch- The character to check.
- Returns:
- true if the character should be encoded.
 
- 
extractRootNamePops the root prefix off a URI, which has had the scheme removed.- Parameters:
- uri- string builder which gets modified.
- Returns:
- the extracted root name.
 
- 
parseUripublic FileName parseUri(VfsComponentContext context, FileName baseFileName, String fileName) throws FileSystemException Parses the base and name into a FileName.- Parameters:
- context- The component context.
- baseFileName- The base FileName.
- fileName- name The target file name.
- Returns:
- The constructed FileName.
- Throws:
- FileSystemException- if an error occurs.
 
 
-