public class CachingSessionFactory.CachedSession extends java.lang.Object implements Session<F>
| Modifier and Type | Method and Description |
|---|---|
void |
append(java.io.InputStream inputStream,
java.lang.String destination)
Append to a file.
|
void |
close() |
void |
dirty() |
boolean |
exists(java.lang.String path)
Check if the remote file or directory exists.
|
boolean |
finalizeRaw()
Invoke after closing the InputStream from
Session.readRaw(String). |
java.lang.Object |
getClientInstance()
Get the underlying client library's client instance for this session.
|
boolean |
isOpen() |
F[] |
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 os) |
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) |
boolean |
rmdir(java.lang.String directory)
Remove a remote directory.
|
void |
write(java.io.InputStream inputStream,
java.lang.String destination) |
public void close()
public boolean remove(java.lang.String path)
throws java.io.IOException
public F[] list(java.lang.String path) throws java.io.IOException
public void read(java.lang.String source,
java.io.OutputStream os)
throws java.io.IOException
public void write(java.io.InputStream inputStream,
java.lang.String destination)
throws java.io.IOException
public void append(java.io.InputStream inputStream,
java.lang.String destination)
throws java.io.IOException
Sessionpublic void rename(java.lang.String pathFrom,
java.lang.String pathTo)
throws java.io.IOException
public boolean mkdir(java.lang.String directory)
throws java.io.IOException
public boolean rmdir(java.lang.String directory)
throws java.io.IOException
Sessionpublic boolean exists(java.lang.String path)
throws java.io.IOException
Sessionpublic java.lang.String[] listNames(java.lang.String path)
throws java.io.IOException
public java.io.InputStream readRaw(java.lang.String source)
throws java.io.IOException
SessionInputStream.public boolean finalizeRaw()
throws java.io.IOException
SessionSession.readRaw(String).
Required by some session providers.finalizeRaw in interface Session<F>java.io.IOException - Any IOException.public void dirty()
public java.lang.Object getClientInstance()
SessionObject to avoid significant changes to -file, -ftp, -sftp
modules, which would be required
if we added another generic parameter. Implementations should narrow the
return type.getClientInstance in interface Session<F>