com.alexkasko.netty.ftp.DataReceiver Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of netty-ftp-receiver Show documentation
Show all versions of netty-ftp-receiver Show documentation
Netty handler, partial implementation of RFC 959 "File Transfer Protocol (FTP)"
for receiving FTP files. Both active and passive modes are supported.
package com.alexkasko.netty.ftp;
import java.io.IOException;
import java.io.InputStream;
/**
* Implementation should read all required data from provided FTP file-upload stream,
* stream will be closed immediately after {@link #receive(String, java.io.InputStream)} call
*
* @author alexkasko
* Date: 12/28/12
*/
public interface DataReceiver {
/**
* Implementation should read provided FTP file-upload data
*
* @param directory current directory set by client
* @param name name of uploaded file
* @param data uploaded file stream
* @throws IOException on IO error
*/
void receive(String directory, String name, InputStream data) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy