org.xfp.filters.ftp
Class FTPGet
java.lang.Object
org.xfp.AttributeContainer
org.xfp.Filter
org.xfp.filters.ftp.FTPAbstractFilter
org.xfp.filters.ftp.FTPGet
- public class FTPGet
- extends FTPAbstractFilter
Downloads a file from an FTP server. Uses an open FTP session from an
attribute.
- Version:
- $Id: FTPGet.java,v 1.1 2004/03/19 15:56:31 flaviotordini Exp $
- Author:
- Flavio Tordini
Method Summary |
java.io.InputStream |
execute()
Executes this filter. |
java.io.InputStream |
execute(org.apache.commons.net.ftp.FTPFile ftpfile)
Executes this filter. |
java.io.InputStream |
execute(java.lang.String filename)
Executes this filter. |
void |
setFilename(java.lang.String filename)
Sets the name of the file |
void |
subreset()
Subclasses must reset their status within this method. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
FTPGet
public FTPGet()
setFilename
public void setFilename(java.lang.String filename)
- Sets the name of the file
execute
public java.io.InputStream execute(java.lang.String filename)
throws java.lang.Exception
- Executes this filter.
- Throws:
java.lang.Exception
execute
public java.io.InputStream execute()
throws java.lang.Exception
- Executes this filter.
- Throws:
java.lang.Exception
execute
public java.io.InputStream execute(org.apache.commons.net.ftp.FTPFile ftpfile)
throws java.lang.Exception
- Executes this filter.
- Throws:
java.lang.Exception
subreset
public void subreset()
- Description copied from class:
FTPAbstractFilter
- Subclasses must reset their status within this method.
- Specified by:
subreset
in class FTPAbstractFilter
- See Also:
FTPAbstractFilter.subreset()
Copyright © 2003-2004 XFP Team. All Rights Reserved.