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

com.softicar.platform.common.network.ftp.IFtpClient Maven / Gradle / Ivy

Go to download

The SoftiCAR Platform is a lightweight, Java-based library to create interactive business web applications.

There is a newer version: 50.0.0
Show newest version
package com.softicar.platform.common.network.ftp;

import com.softicar.platform.common.io.file.IPath;
import java.io.InputStream;
import java.util.List;

public interface IFtpClient extends AutoCloseable {

	void connect();

	void disconnect();

	void reconnect();

	void validateConnection();

	void createDirectory(IPath directoryPath);

	void putFile(byte[] content, IPath filePath);

	void putFile(InputStream is, IPath filePath);

	void moveFile(IPath sourceFilePath, IPath targetFilePath);

	boolean deleteFile(IPath filePath);

	boolean isFileExists(IPath filePath);

	FtpFile getFile(IPath filePath);

	List getFiles(IPath folderPath);

	byte[] getFileContent(FtpFile ftpFile, boolean reconnectIfNecessary);

	/**
	 * Closes the connection to the FTP client.
	 * 

* This method only throws {@link RuntimeException}. */ @Override void close(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy