storagehub-client-library/src/main/java/org/gcube/common/storagehub/client/dsl/ItemContainer.java

25 lines
557 B
Java
Raw Normal View History

package org.gcube.common.storagehub.client.dsl;
import java.io.InputStream;
import org.gcube.common.storagehub.client.StreamDescriptor;
import org.gcube.common.storagehub.client.proxies.ItemManagerClient;
public class ItemContainer {
private ItemManagerClient itemclient;
private String folderId = null;
// private String folderPath = null;
protected ItemContainer(ItemManagerClient itemclient) {
this.itemclient = itemclient;
}
public StreamDescriptor download(InputStream stream) {
return itemclient.download(this.folderId);
}
}