Class AbstractFileInfo<F>
java.lang.Object
org.springframework.integration.file.remote.AbstractFileInfo<F>
- Type Parameters:
F
- The target protocol file type.
- All Implemented Interfaces:
Comparable<FileInfo<F>>
,FileInfo<F>
- Direct Known Subclasses:
FtpFileInfo
,SftpFileInfo
,SmbFileInfo
public abstract class AbstractFileInfo<F>
extends Object
implements FileInfo<F>, 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
-
Constructor Summary
-
Method Summary
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.springframework.integration.file.remote.FileInfo
getFileInfo, getFilename, getModified, getPermissions, getSize, isDirectory, isLink
-
Constructor Details
-
AbstractFileInfo
public AbstractFileInfo()
-
-
Method Details
-
setRemoteDirectory
- Parameters:
remoteDirectory
- the remoteDirectory to set
-
getRemoteDirectory
- Specified by:
getRemoteDirectory
in interfaceFileInfo<F>
- Returns:
- the remote directory in which the file resides
-
compareTo
- Specified by:
compareTo
in interfaceComparable<F>
-
toJson
-
toString
-