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

ru.r2cloud.apt.Transport Maven / Gradle / Ivy

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; }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy