StorageService.java
467 Bytes
package com.infoloop.tianting.server;
import java.io.File;
import java.io.InputStream;
public interface StorageService extends AutoCloseable {
void putObject(String bucketName, String key, byte[] data) throws Exception;
void putObject(String bucketName, String key, File file) throws Exception;
void putObject(String bucketName, String key, InputStream stream) throws Exception;
InputStream getObjectInputStream(String bucketName, String key);
}