public class CachePolicy extends Object
| 构造器 | 说明 |
|---|---|
CachePolicy() |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
isCacheCleanXattr(File object) |
Checks whether a specified cache directory object has the
cacheClean extended attribute. |
boolean |
isCacheDeleteXattr(File object) |
Checks whether a specified cache directory object has the
cacheDelete extended attribute. |
void |
removeCacheCleanXattr(File object) |
Deletes the
cacheClean extended attribute from a specified cache directory object. |
void |
removeCacheDeleteXattr(File object) |
Deletes the
cacheDelete extended attribute from a specified cache directory object. |
void |
setCacheCleanXattr(File object) |
Adds the
cacheClean extended attribute to a specified cache directory object. |
void |
setCacheDeleteXattr(File object) |
Adds the
cacheDelete extended attribute to a specified cache directory object. |
public void setCacheDeleteXattr(File object) throws IOException
cacheDelete extended attribute to a specified cache directory object.object - Indicates the cache directory object.IOException - Throws this exception if object is invalid or a native exception occurs.public void removeCacheDeleteXattr(File object) throws IOException
cacheDelete extended attribute from a specified cache directory object.object - Indicates the cache directory object.IOException - Throws this exception if object is invalid or a native exception occurs.public boolean isCacheDeleteXattr(File object) throws IOException
cacheDelete extended attribute.object - Indicates the cache directory object.true if the cache directory object has the cacheDelete extended attribute;
returns false otherwise.IOException - Throws this exception if object is invalid or a native exception occurs.public void setCacheCleanXattr(File object) throws IOException
cacheClean extended attribute to a specified cache directory object.object - Indicates the cache directory object.IOException - Throws this exception if object is invalid or a native exception occurs.public void removeCacheCleanXattr(File object) throws IOException
cacheClean extended attribute from a specified cache directory object.object - Indicates the cache directory object.IOException - Throws this exception if object is invalid or a native exception occurs.public boolean isCacheCleanXattr(File object) throws IOException
cacheClean extended attribute.object - Indicates the cache directory object.true if the cache directory object has the cacheClean extended attribute;
returns false otherwise.IOException - Throws this exception if object is invalid or a native exception occurs.