25 lines
557 B
Java
25 lines
557 B
Java
|
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);
|
||
|
}
|
||
|
|
||
|
|
||
|
}
|