public class GcsSession extends Object
Constructor and Description |
---|
GcsSession(com.google.cloud.storage.Storage gcs) |
Modifier and Type | Method and Description |
---|---|
void |
append(InputStream inputStream,
String destination) |
void |
close() |
boolean |
exists(String path) |
boolean |
finalizeRaw() |
Object |
getClientInstance() |
boolean |
isOpen() |
com.google.cloud.storage.BlobInfo[] |
list(String path) |
String[] |
listNames(String path) |
boolean |
mkdir(String directory) |
void |
read(String source,
OutputStream outputStream) |
InputStream |
readRaw(String source) |
boolean |
remove(String path) |
void |
rename(String pathFrom,
String pathTo) |
boolean |
rmdir(String directory) |
void |
write(InputStream inputStream,
String destination) |
public boolean remove(String path) throws IOException
IOException
public com.google.cloud.storage.BlobInfo[] list(String path) throws IOException
IOException
public void read(String source, OutputStream outputStream) throws IOException
IOException
public void write(InputStream inputStream, String destination) throws IOException
IOException
public void append(InputStream inputStream, String destination) throws IOException
IOException
public boolean mkdir(String directory) throws IOException
IOException
public boolean rmdir(String directory) throws IOException
IOException
public void rename(String pathFrom, String pathTo) throws IOException
IOException
public void close()
public boolean isOpen()
public boolean exists(String path) throws IOException
IOException
public String[] listNames(String path) throws IOException
IOException
public InputStream readRaw(String source) throws IOException
IOException
public boolean finalizeRaw() throws IOException
IOException
public Object getClientInstance()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.