public final class SharabilityQuery extends Object
This query can be considered to obsolete FileObject.setImportant(boolean).
Unlike that method, the information is pulled by the VCS filesystem on
demand, which may be more reliable than ensuring that the information
is pushed by a project type (or other implementor) eagerly.
SharabilityQueryImplementation| Modifier and Type | Field and Description |
|---|---|
static int |
MIXED
Constant indicating that a directory is sharable but files and
directories recursively contained in it may or may not be sharable.
|
static int |
NOT_SHARABLE
Constant indicating that the file or directory is not sharable.
|
static int |
SHARABLE
Constant indicating that the file or directory is sharable.
|
static int |
UNKNOWN
Constant indicating that nothing is known about whether a given
file should be considered sharable or not.
|
| Modifier and Type | Method and Description |
|---|---|
static int |
getSharability(File file)
Check whether an existing file is sharable.
|
public static final int UNKNOWN
public static final int SHARABLE
public static final int NOT_SHARABLE
public static final int MIXED
public static int getSharability(File file)
file - a file or directory (may or may not already exist); should be normalizedBuilt on August 24 2014. | Portions Copyright 1997-2014 Sun Microsystems, Inc. All rights reserved.