Spring Integration

org.springframework.integration.file.remote
Class AbstractFileInfo<F>

java.lang.Object
  extended by 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

Constructor Summary
AbstractFileInfo()
           
 
Method Summary
 int compareTo(FileInfo<F> o)
           
 java.lang.String getRemoteDirectory()
           
 void setRemoteDirectory(java.lang.String remoteDirectory)
           
 java.lang.String toString()
           
 
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 Detail

AbstractFileInfo

public AbstractFileInfo()
Method Detail

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>>

Spring Integration