org.apache.ftpserver.command
Class RETR
java.lang.Object
org.apache.ftpserver.command.AbstractCommand
org.apache.ftpserver.command.RETR
- All Implemented Interfaces:
- Command
public class RETR
- extends AbstractCommand
RETR <SP> <pathname> <CRLF>
This command causes the server-DTP to transfer a copy of the
file, specified in the pathname, to the server- or user-DTP
at the other end of the data connection. The status and
contents of the file at the server site shall be unaffected.
Constructor Summary |
RETR()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RETR
public RETR()
execute
public void execute(FtpIoSession session,
FtpServerContext context,
FtpRequest request)
throws java.io.IOException,
FtpException
- Execute command.
- Parameters:
session
- TODOcontext
- TODO
- Throws:
java.io.IOException
FtpException
openInputStream
public java.io.InputStream openInputStream(FtpIoSession session,
FileObject file,
long skipLen)
throws java.io.IOException
- Skip length and open input stream.
- Throws:
java.io.IOException
Copyright © 2003-2008 The Apache Software Foundation. All Rights Reserved.