Package org.javlo.service.syncro
Class FileInfo
- java.lang.Object
-
- org.javlo.service.syncro.FileInfo
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description FileInfoclone()StringgetChecksum()static FileInfogetDeletedFileInfo(String path, long deletedDate)static FileInfogetFileInfo(String relativePath, File file, String precomputedChecksum)longgetModificationDate()StringgetPath()longgetSize()booleanisDeleted()booleanisDirectory()voidsetChecksum(String checksum)voidsetDirectory(boolean directory)voidsetModificationDate(long modificationDate)voidsetPath(String path)voidsetSize(long size)StringtoRaw()StringtoString()
-
-
-
Field Detail
-
logger
protected static Logger logger
create a static logger.
-
-
Method Detail
-
getFileInfo
public static final FileInfo getFileInfo(String relativePath, File file, String precomputedChecksum) throws IOException
- Throws:
IOException
-
isDirectory
public boolean isDirectory()
-
setDirectory
public void setDirectory(boolean directory)
-
getModificationDate
public long getModificationDate()
-
setModificationDate
public void setModificationDate(long modificationDate)
-
getChecksum
public String getChecksum()
-
setChecksum
public void setChecksum(String checksum)
-
getSize
public long getSize()
-
setSize
public void setSize(long size)
-
getPath
public String getPath()
-
setPath
public void setPath(String path)
-
isDeleted
public boolean isDeleted()
-
toRaw
public String toRaw()
-
-