public class FileDiff
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static int |
IDX_CRC
Index to access CRC differences
|
static int |
IDX_SIZE
Index to access size differences
|
static int |
IDX_TIME
Index to access time differences
|
Constructor and Description |
---|
FileDiff(java.lang.String str)
Construct a
FileDiff object from the given string |
FileDiff(java.lang.String name,
java.lang.String size,
java.lang.String time)
Construct a
FileDiff object given file name, file size
and file time. |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName()
Return the file name.
|
long |
getSize()
Return the file size.
|
long |
getTime()
Return last modified time or file time.
|
long |
getValue(int idx)
Retrieve a file diff value at a given index.
|
boolean |
isWildCard()
Check if the file name is a wild card file name or not.
|
public static final int IDX_CRC
public static final int IDX_SIZE
public static final int IDX_TIME
public FileDiff(java.lang.String str)
FileDiff
object from the given stringstr
- Diff information as a string.public FileDiff(java.lang.String name, java.lang.String size, java.lang.String time)
FileDiff
object given file name, file size
and file time.name
- File namesize
- File timetime
- File timepublic java.lang.String getName()
public long getSize()
public long getTime()
public long getValue(int idx)
Index = 0: File Size
Index = 1: File Time
Index = 2: File CRC
Index = 3: Page CRCs
idx
- specify which diff information to getpublic boolean isWildCard()