public class FileRemote.InternalAccess
extends java.lang.Object
Constructor and Description |
---|
InternalAccess() |
Modifier and Type | Method and Description |
---|---|
int |
clrFlagBit(int bit) |
int |
clrFlagBitChildren(int bit,
int recursion) |
FileRemote |
newChild(java.lang.CharSequence sPath,
long length,
long dateLastModified,
long dateCreation,
long dateLastAccess,
int flags,
java.lang.Object oFileP)
Creates a new file as child of this file.
|
void |
newChildren()
Creates a new children list or removes all children because there should be refreshed.
|
void |
putNewChild(FileRemote child) |
void |
setChildrenRefreshed()
Removes all children which are marked as
FileRemote.mRefreshChildPending ,
removes the FileRemote.mShouldRefresh mark for this directory
and sets the FileRemote.timeRefresh and FileRemote.timeChildren to the current time then. |
boolean |
setDeleted()
Sets this FileRemote to the delete state because the underlying file was deleted.
|
int |
setFlagBit(int bit) |
int |
setFlagBits(int mask,
int bits) |
void |
setLengthAndDate(long length,
long dateLastModified,
long dateCreation,
long dateLastAccess)
The values are set if there are not ==-1
|
int |
setOrClrFlagBit(int bit,
boolean set) |
void |
setPath(java.nio.file.Path path) |
void |
setRefreshed() |
public int setFlagBit(int bit)
public int clrFlagBit(int bit)
public int clrFlagBitChildren(int bit, int recursion)
public int setFlagBits(int mask, int bits)
public void setPath(java.nio.file.Path path)
public void setLengthAndDate(long length, long dateLastModified, long dateCreation, long dateLastAccess)
length
- dateLastModified
- dateCreation
- dateLastAccess
- public int setOrClrFlagBit(int bit, boolean set)
public void setRefreshed()
public void setChildrenRefreshed()
FileRemote.mRefreshChildPending
,
removes the FileRemote.mShouldRefresh
mark for this directory
and sets the FileRemote.timeRefresh
and FileRemote.timeChildren
to the current time then.public void newChildren()
FileRemote.mRefreshChildPending
because the instances are necessary for refreshing
to get the same instance for the same child again. Note that some marker may be stored there, see FileRemote.setMarked(int)
etc.
On entry a new child the instance will be unchanged, but the marker mRemoved is removed and the properties of the child are refreshed.
On finishing the refreshing of a directory all FileRemote
child instances which's mRemoved is remain are removed then.public FileRemote newChild(java.lang.CharSequence sPath, long length, long dateLastModified, long dateCreation, long dateLastAccess, int flags, java.lang.Object oFileP)
public void putNewChild(FileRemote child)
public boolean setDeleted()