Modifier and Type | Field and Description |
---|---|
protected static Logger |
logger
create a static logger.
|
Constructor and Description |
---|
FileInfo() |
FileInfo(String rawInfo) |
FileInfo(String path,
boolean isDirectory,
long size,
long modificationDate,
String checksum) |
Modifier and Type | Method and 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() |
protected static Logger logger
public FileInfo()
public FileInfo(String path, boolean isDirectory, long size, long modificationDate, String checksum)
public FileInfo(String rawInfo)
public static final FileInfo getFileInfo(String relativePath, File file, String precomputedChecksum) throws IOException
IOException
public boolean isDirectory()
public void setDirectory(boolean directory)
public long getModificationDate()
public void setModificationDate(long modificationDate)
public String getChecksum()
public void setChecksum(String checksum)
public long getSize()
public void setSize(long size)
public String getPath()
public void setPath(String path)
public boolean isDeleted()
public String toRaw()
Copyright © 2012-2018. All Rights Reserved.