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:
org.apache.commons.vfs2.provider.FileNameParser

public class FtpFileNameParser
extends org.apache.commons.vfs2.provider.HostFileNameParser

Implementation for ftp. set default port to 21

Author:
Commons VFS team PATCH for : https://issues.apache.org/jira/browse/VFS-178

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.commons.vfs2.provider.HostFileNameParser
org.apache.commons.vfs2.provider.HostFileNameParser.Authority
 
Constructor Summary
FtpFileNameParser()
           
 
Method Summary
static org.apache.commons.vfs2.provider.FileNameParser getInstance()
           
 org.apache.commons.vfs2.FileName parseUri(org.apache.commons.vfs2.provider.VfsComponentContext context, org.apache.commons.vfs2.FileName base, String 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 org.apache.commons.vfs2.provider.FileNameParser getInstance()

parseUri

public org.apache.commons.vfs2.FileName parseUri(org.apache.commons.vfs2.provider.VfsComponentContext context,
                                                 org.apache.commons.vfs2.FileName base,
                                                 String filename)
                                          throws org.apache.commons.vfs2.FileSystemException
Specified by:
parseUri in interface org.apache.commons.vfs2.provider.FileNameParser
Overrides:
parseUri in class org.apache.commons.vfs2.provider.HostFileNameParser
Throws:
org.apache.commons.vfs2.FileSystemException


Copyright © 2005-2012 Apache Software Foundation. All Rights Reserved.