org.apache.commons.vfs2.provider.ftp
Class FtpFileNameParser

java.lang.Object
  extended by org.apache.commons.vfs2.provider.AbstractFileNameParser
      extended by org.apache.commons.vfs2.provider.HostFileNameParser
          extended by org.apache.commons.vfs2.provider.ftp.FtpFileNameParser
All Implemented Interfaces:
FileNameParser

public class FtpFileNameParser
extends HostFileNameParser

Implementation for ftp. set default port to 21

Author:
Commons VFS team

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.vfs2.provider.HostFileNameParser
HostFileNameParser.Authority
 
Constructor Summary
FtpFileNameParser()
           
 
Method Summary
static FileNameParser getInstance()
           
 FileName parseUri(VfsComponentContext context, FileName base, String fileName)
          parses a String into a filename.
 
Methods inherited from class org.apache.commons.vfs2.provider.HostFileNameParser
encodeCharacter, extractHostName, extractPort, extractToPath, extractUserInfo, getDefaultPort
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FtpFileNameParser

public FtpFileNameParser()
Method Detail

getInstance

public static FileNameParser getInstance()

parseUri

public FileName parseUri(VfsComponentContext context,
                         FileName base,
                         String fileName)
                  throws FileSystemException
Description copied from interface: FileNameParser
parses a String into a filename.

Specified by:
parseUri in interface FileNameParser
Overrides:
parseUri in class HostFileNameParser
Parameters:
context - The component context.
base - The base FileName.
fileName - The target file name.
Returns:
A FileName that represents the taret file.
Throws:
FileSystemException - if an error occurs parsing the URI.


Copyright © 2002–2015 WSO2. All rights reserved.