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 FileInfo
clone()
String
getChecksum()
static FileInfo
getDeletedFileInfo(String path, long deletedDate)
static FileInfo
getFileInfo(String relativePath, File file, String precomputedChecksum)
long
getModificationDate()
String
getPath()
long
getSize()
boolean
isDeleted()
boolean
isDirectory()
void
setChecksum(String checksum)
void
setDirectory(boolean directory)
void
setModificationDate(long modificationDate)
void
setPath(String path)
void
setSize(long size)
String
toRaw()
String
toString()
-
-
-
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()
-
-