public interface Session<T>
Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
exists(java.lang.String path) |
boolean |
finalizeRaw()
Invoke after closing the InputStream from
readRaw(String) . |
boolean |
isOpen() |
T[] |
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)
Retrieve a remote file as a raw
InputStream . |
boolean |
remove(java.lang.String path) |
void |
rename(java.lang.String pathFrom,
java.lang.String pathTo) |
void |
write(java.io.InputStream inputStream,
java.lang.String destination) |
boolean remove(java.lang.String path) throws java.io.IOException
java.io.IOException
T[] list(java.lang.String path) throws java.io.IOException
java.io.IOException
void read(java.lang.String source, java.io.OutputStream outputStream) throws java.io.IOException
java.io.IOException
void write(java.io.InputStream inputStream, java.lang.String destination) throws java.io.IOException
java.io.IOException
boolean mkdir(java.lang.String directory) throws java.io.IOException
java.io.IOException
void rename(java.lang.String pathFrom, java.lang.String pathTo) throws java.io.IOException
java.io.IOException
void close()
boolean isOpen()
boolean exists(java.lang.String path) throws java.io.IOException
java.io.IOException
java.lang.String[] listNames(java.lang.String path) throws java.io.IOException
java.io.IOException
java.io.InputStream readRaw(java.lang.String source) throws java.io.IOException
InputStream
.source
- The path of the remote filejava.io.IOException
boolean finalizeRaw() throws java.io.IOException
readRaw(String)
.
Required by some session providers.java.io.IOException