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

com.files.net.FilesApiInterface Maven / Gradle / Ivy

Go to download

The Files.com Java client library provides convenient access to the Files.com API from JVM based applications.

There is a newer version: 1.4.123
Show newest version
package com.files.net;

import com.fasterxml.jackson.core.type.TypeReference;
import com.files.ListIterator;
import com.files.util.FilesInputStream;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.List;

public interface FilesApiInterface {
  public FilesResponse apiRequest(String url, HttpMethods.RequestMethods requestType, HashMap parameters, HashMap options) throws RuntimeException;

  public  ListIterator apiRequestList(String url, HttpMethods.RequestMethods requestType, TypeReference> className,
                       HashMap parameters, HashMap options) throws RuntimeException;

  public  T apiRequestItem(String url, HttpMethods.RequestMethods requestType, TypeReference className,
                             HashMap parameters, HashMap options) throws RuntimeException;

  public FilesInputStream getFileInputStream(String url, long start, long end) throws IOException;

  public long putBuffer(String url, HttpMethods.RequestMethods requestType, String name, byte[] buffer, long length) throws IOException;

  public long putBufferedInputStream(String url, HttpMethods.RequestMethods requestType, String name, BufferedInputStream inputStream, long length) throws IOException;
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy