public class S3Session extends java.lang.Object implements org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
Session
implementation.Modifier and Type | Method and Description |
---|---|
void |
append(java.io.InputStream inputStream,
java.lang.String destination) |
void |
close() |
boolean |
exists(java.lang.String path) |
boolean |
finalizeRaw() |
java.lang.Object |
getClientInstance() |
boolean |
isOpen() |
S3ObjectSummary[] |
list(java.lang.String path) |
java.lang.String[] |
listNames(java.lang.String path) |
boolean |
mkdir(java.lang.String directory) |
void |
read(java.lang.String source,
java.io.OutputStream outputStream) |
java.io.InputStream |
readRaw(java.lang.String source) |
boolean |
remove(java.lang.String path) |
void |
rename(java.lang.String pathFrom,
java.lang.String pathTo) |
boolean |
rmdir(java.lang.String directory) |
void |
write(java.io.InputStream inputStream,
java.lang.String destination) |
public S3Session(AmazonS3 amazonS3)
public S3ObjectSummary[] list(java.lang.String path) throws java.io.IOException
list
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public java.lang.String[] listNames(java.lang.String path) throws java.io.IOException
listNames
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public boolean remove(java.lang.String path) throws java.io.IOException
remove
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public void rename(java.lang.String pathFrom, java.lang.String pathTo) throws java.io.IOException
rename
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public void read(java.lang.String source, java.io.OutputStream outputStream) throws java.io.IOException
read
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public void write(java.io.InputStream inputStream, java.lang.String destination) throws java.io.IOException
write
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public void append(java.io.InputStream inputStream, java.lang.String destination) throws java.io.IOException
append
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public boolean mkdir(java.lang.String directory) throws java.io.IOException
mkdir
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public boolean rmdir(java.lang.String directory) throws java.io.IOException
rmdir
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public boolean exists(java.lang.String path) throws java.io.IOException
exists
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public java.io.InputStream readRaw(java.lang.String source) throws java.io.IOException
readRaw
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public void close()
close
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
public boolean isOpen()
isOpen
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
public boolean finalizeRaw() throws java.io.IOException
finalizeRaw
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>
java.io.IOException
public java.lang.Object getClientInstance()
getClientInstance
in interface org.springframework.integration.file.remote.session.Session<S3ObjectSummary>