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