org.apache.commons.vfs.provider
Interface FileNameParser

All Known Implementing Classes:
AbstractFileNameParser

public interface FileNameParser

Provides methods to parse a filename into a FileName


Method Summary
 boolean encodeCharacter(char ch)
          Check if a character needs encoding (%nn)
 FileName parseUri(VfsComponentContext context, FileName base, String filename)
          parses a String into a filename
 

Method Detail

encodeCharacter

public boolean encodeCharacter(char ch)
Check if a character needs encoding (%nn)

Parameters:
ch - the character
Returns:
true if character should be encoded

parseUri

public FileName parseUri(VfsComponentContext context,
                         FileName base,
                         String filename)
                  throws FileSystemException
parses a String into a filename

Parameters:
base -
filename -
Throws:
FileSystemException


Copyright © 2002-2006 The Apache Software Foundation. All Rights Reserved.