public class FileMark extends SelectMask
FileRemote
to store comparison or mark information.Modifier and Type | Field and Description |
---|---|
static int |
cmpAlone
Flags as result of an comparison: the other file does not exist, or any files of an directory does not exists
or there are differences.
|
static int |
cmpContentEqual
Flags as result of an comparison: the other file does not exist, or exists only with same length or with same time stamp
|
static int |
cmpContentNotEqual
Flags as result of an comparison: the other file does not exist, or exists only with same length or with same time stamp
|
static int |
cmpFileDifferences
Flags as result of an comparison: the other file does not exist, or any files of an directory does not exists
or there are differences.
|
static int |
cmpLenTimeEqual
Flags as result of an comparison: the other file has the same length and same time stamp, it seems it may be equal, but not tested.
|
static int |
cmpMissingFiles
Flags as result of an comparison: the other file does not exist, or any files of an directory does not exists
or there are differences.
|
protected FileRemote |
itsFile |
static int |
markDir
Flags means that this file is any directory which is in the mark tree.
|
static int |
markRoot
Flags means that this file is the root of mark.
|
static int |
mCmpFile
mask of all bits for comparison one file.
|
(package private) long |
nrofBytesSelected |
(package private) int |
nrofFilesSelected |
static int |
select
Flags is a simple marker for selecting.
|
static int |
selectSomeInDir
Flags means that some but not all files are marked inside a directory.
|
static java.lang.String |
sVersion
Version, history and license.
|
static char |
XXXcharCmpContentEqual
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
static char |
XXXcharCmpContentEqualWithoutComments
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
static char |
XXXcharCmpContentEqualWithoutEndlines
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
static char |
XXXcharCmpContentEqualwithoutSpaces
Flags as result of an comparison: the other file is checked by content maybe with restricitons.
|
selectMask, version
Constructor and Description |
---|
FileMark(FileRemote itsFile) |
Modifier and Type | Method and Description |
---|---|
int |
nrofFilesSelected() |
int |
setMarked(int mask,
java.lang.Object data)
Sets some bits of the mask.
|
void |
setMarkParent(int mask,
boolean count)
Sets a mark to all parents of this till the
markRoot is found. |
int |
setNonMarkedRecursively(int mask,
java.lang.Object data,
boolean recursively) |
getMark, setNonMarked
public static final java.lang.String sVersion
FileRemote
may have information about a select status
or about a comparison result. It is stored in a referred instance of this type. Experience.
public static final char XXXcharCmpContentEqual
public static final char XXXcharCmpContentEqualWithoutComments
public static final char XXXcharCmpContentEqualWithoutEndlines
public static final char XXXcharCmpContentEqualwithoutSpaces
public static final int select
public static final int selectSomeInDir
public static final int markRoot
public static final int markDir
public static final int cmpAlone
public static final int cmpLenTimeEqual
public static final int cmpContentEqual
public static final int cmpContentNotEqual
public static final int mCmpFile
public static final int cmpMissingFiles
public static final int cmpFileDifferences
protected final FileRemote itsFile
int nrofFilesSelected
long nrofBytesSelected
public FileMark(FileRemote itsFile)
public int nrofFilesSelected()
public int setNonMarkedRecursively(int mask, java.lang.Object data, boolean recursively)
public int setMarked(int mask, java.lang.Object data)
SelectMask
setMarked
in interface MarkMask_ifc
setMarked
in class SelectMask
mask
- This bits of the SelectMask.selectMask
will be reseted.data
- not used here.public void setMarkParent(int mask, boolean count)
markRoot
is found.mask
- count
- TODO