All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.alexkasko.netty.ftp.DataReceiver Maven / Gradle / Ivy

Go to download

Netty handler, partial implementation of RFC 959 "File Transfer Protocol (FTP)" for receiving FTP files. Both active and passive modes are supported.

There is a newer version: 1.2.3
Show newest version
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