public class GcsSession extends Object implements org.springframework.integration.file.remote.session.Session<BlobInfo>
| Constructor and Description |
|---|
GcsSession(Storage gcs) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(InputStream inputStream,
String destination) |
void |
close() |
boolean |
exists(String path) |
boolean |
finalizeRaw() |
Object |
getClientInstance() |
String |
getHostPort() |
boolean |
isOpen() |
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 GcsSession(Storage gcs)
public boolean remove(String path) throws IOException
remove in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic BlobInfo[] list(String path) throws IOException
list in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic void read(String source, OutputStream outputStream) throws IOException
read in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic void write(InputStream inputStream, String destination) throws IOException
write in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic void append(InputStream inputStream, String destination) throws IOException
append in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic boolean mkdir(String directory) throws IOException
mkdir in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic boolean rmdir(String directory) throws IOException
rmdir in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic void rename(String pathFrom, String pathTo) throws IOException
rename in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic void close()
close in interface Closeableclose in interface AutoCloseableclose in interface org.springframework.integration.file.remote.session.Session<BlobInfo>public boolean isOpen()
isOpen in interface org.springframework.integration.file.remote.session.Session<BlobInfo>public boolean exists(String path) throws IOException
exists in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic String[] listNames(String path) throws IOException
listNames in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic InputStream readRaw(String source) throws IOException
readRaw in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic boolean finalizeRaw()
throws IOException
finalizeRaw in interface org.springframework.integration.file.remote.session.Session<BlobInfo>IOExceptionpublic Object getClientInstance()
getClientInstance in interface org.springframework.integration.file.remote.session.Session<BlobInfo>Copyright © 2020 Pivotal Software, Inc.. All rights reserved.