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
IOExceptionpublic com.google.cloud.storage.BlobInfo[] list(String path) throws IOException
IOExceptionpublic void read(String source, OutputStream outputStream) throws IOException
IOExceptionpublic void write(InputStream inputStream, String destination) throws IOException
IOExceptionpublic void append(InputStream inputStream, String destination) throws IOException
IOExceptionpublic boolean mkdir(String directory) throws IOException
IOExceptionpublic boolean rmdir(String directory) throws IOException
IOExceptionpublic void rename(String pathFrom, String pathTo) throws IOException
IOExceptionpublic void close()
public boolean isOpen()
public boolean exists(String path) throws IOException
IOExceptionpublic String[] listNames(String path) throws IOException
IOExceptionpublic InputStream readRaw(String source) throws IOException
IOExceptionpublic boolean finalizeRaw()
throws IOException
IOExceptionpublic Object getClientInstance()
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.