org.springframework.integration.file.remote.session
Interface Session<T>
- All Known Implementing Classes:
- FtpSession
public interface Session<T>
Common abstraction for a Session with a remote File system.
- Since:
- 2.0
- Author:
- Josh Long, Mario Gray, Mark Fisher, Oleg Zhurakousky, Gary Russell
Method Summary |
void |
close()
|
boolean |
exists(java.lang.String path)
|
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)
|
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)
|
remove
boolean remove(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
list
T[] list(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
read
void read(java.lang.String source,
java.io.OutputStream outputStream)
throws java.io.IOException
- Throws:
java.io.IOException
write
void write(java.io.InputStream inputStream,
java.lang.String destination)
throws java.io.IOException
- Throws:
java.io.IOException
mkdir
boolean mkdir(java.lang.String directory)
throws java.io.IOException
- Throws:
java.io.IOException
rename
void rename(java.lang.String pathFrom,
java.lang.String pathTo)
throws java.io.IOException
- Throws:
java.io.IOException
close
void close()
isOpen
boolean isOpen()
exists
boolean exists(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException
listNames
java.lang.String[] listNames(java.lang.String path)
throws java.io.IOException
- Throws:
java.io.IOException