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
IOExceptionT[] list(String path) throws IOException
IOExceptionvoid read(String source, OutputStream outputStream) throws IOException
IOExceptionvoid write(InputStream inputStream, String destination) throws IOException
IOExceptionboolean mkdir(String directory) throws IOException
IOExceptionvoid rename(String pathFrom, String pathTo) throws IOException
IOExceptionvoid close()
boolean isOpen()
boolean exists(String path) throws IOException
IOExceptionString[] listNames(String path) throws IOException
IOExceptionInputStream 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.