org.apache.commons.vfs2.provider
public class LayeredFileNameParser extends AbstractFileNameParser
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()
Return the Parser.
|
FileName |
parseUri(VfsComponentContext context,
FileName base,
java.lang.String filename)
Parse the base and name into a FileName.
|
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, java.lang.String filename) throws FileSystemException
context
- The component context.base
- The base FileName.filename
- The target file name.FileSystemException
- if an error occurs.protected java.lang.String extractRootName(java.lang.StringBuilder uri) throws FileSystemException
FileSystemException
Copyright © 2002-2014 The Apache Software Foundation. All Rights Reserved.