|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.commons.vfs.provider.AbstractFileNameParser
org.apache.commons.vfs.provider.LayeredFileNameParser
public class LayeredFileNameParser
Implementation for layered filesystems.
Additionally encodes the '!' character.
Constructor Summary | |
---|---|
LayeredFileNameParser()
|
Method Summary | |
---|---|
boolean |
encodeCharacter(char ch)
Determines if a character should be encoded. |
protected String |
extractRootName(StringBuffer 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayeredFileNameParser()
Method Detail |
---|
public static LayeredFileNameParser getInstance()
public boolean encodeCharacter(char ch)
encodeCharacter
in interface FileNameParser
encodeCharacter
in class AbstractFileNameParser
ch
- 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(StringBuffer uri) throws FileSystemException
FileSystemException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |