public class CachingSessionFactory.CachedSession extends Object implements Session<F>
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
dirty() |
boolean |
exists(String path) |
boolean |
finalizeRaw()
Invoke after closing the InputStream from
Session.readRaw(String) . |
boolean |
isOpen() |
F[] |
list(String path) |
String[] |
listNames(String path) |
boolean |
mkdir(String directory) |
void |
read(String source,
OutputStream os) |
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) |
public boolean remove(String path) throws IOException
remove
in interface Session<F>
IOException
public F[] list(String path) throws IOException
list
in interface Session<F>
IOException
public void read(String source, OutputStream os) throws IOException
read
in interface Session<F>
IOException
public void write(InputStream inputStream, String destination) throws IOException
write
in interface Session<F>
IOException
public void rename(String pathFrom, String pathTo) throws IOException
rename
in interface Session<F>
IOException
public boolean mkdir(String directory) throws IOException
mkdir
in interface Session<F>
IOException
public boolean exists(String path) throws IOException
exists
in interface Session<F>
IOException
public String[] listNames(String path) throws IOException
listNames
in interface Session<F>
IOException
public InputStream readRaw(String source) throws IOException
Session
InputStream
.readRaw
in interface Session<F>
source
- The path of the remote file.IOException
- Any IOException.public boolean finalizeRaw() throws IOException
Session
Session.readRaw(String)
.
Required by some session providers.finalizeRaw
in interface Session<F>
IOException
- Any IOException.public void dirty()