org.springframework.integration.file.remote
Class AbstractFileInfo<F>
java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<F>
- All Implemented Interfaces:
- java.lang.Comparable<FileInfo<F>>, FileInfo<F>
- Direct Known Subclasses:
- FtpFileInfo, SftpFileInfo
public abstract class AbstractFileInfo<F>
- extends java.lang.Object
- implements FileInfo<F>, java.lang.Comparable<FileInfo<F>>
Abstract implementation of FileInfo
; provides a setter
for the remote directory and a generic toString implementation.
- Since:
- 2.1
- Author:
- Gary Russell
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
AbstractFileInfo
public AbstractFileInfo()
setRemoteDirectory
public void setRemoteDirectory(java.lang.String remoteDirectory)
- Parameters:
remoteDirectory
- the remoteDirectory to set
getRemoteDirectory
public java.lang.String getRemoteDirectory()
- Specified by:
getRemoteDirectory
in interface FileInfo<F>
- Returns:
- the remote directory in which the file resides
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
compareTo
public int compareTo(FileInfo<F> o)
- Specified by:
compareTo
in interface java.lang.Comparable<FileInfo<F>>