ru.r2cloud.apt.Transport Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of apt-man Show documentation
Show all versions of apt-man Show documentation
Library for managing APT repository
The newest version!
package ru.r2cloud.apt;
import java.io.File;
import java.io.IOException;
import java.util.List;
import ru.r2cloud.apt.model.RemoteFile;
/**
* Different protocols for working with apt repositories. Some of them might
* include:
*
* - File
* - Http
* - Amazon S3
* - Maven's Wagon
*
*
* @author dernasherbrezon
*
*/
public interface Transport {
void save(String path, File file) throws IOException;
void save(String path, IOCallback callback) throws IOException;
void saveGzipped(String path, IOCallback callback) throws IOException;
void load(String path, IOCallback callback) throws IOException, ResourceDoesNotExistException;
void loadGzipped(String path, IOCallback callback) throws IOException, ResourceDoesNotExistException;
long getFileSize(String path) throws IOException, ResourceDoesNotExistException;
List listFiles(String path);
void delete(String path) throws IOException;
}