Class Resources
java.lang.Object
org.eclipse.jetty.util.resource.Resources
- 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionstatic booleanTrue if the resource exists.static booleanisCombined(Resource resource) True if the resource has been created bycombiningother resources.static booleanisDirectory(Resource resource) True if resource is a valid directory.static booleanisReadable(Resource resource) True if resource is readable.static booleanisReadableDirectory(Resource resource) True if resource is a valid directory that can be read from.static booleanisReadableFile(Resource resource) True if resource exists, is not a directory, is readable.static booleanTrue if the resource is missing. 
- 
Constructor Details
- 
Resources
public Resources() 
 - 
 - 
Method Details
- 
exists
True if the resource exists.- Parameters:
 resource- the resource to test- Returns:
 - true if resource is non-null and exists
 - See Also:
 
 - 
isCombined
 - 
missing
True if the resource is missing.- Parameters:
 resource- the resource to test- Returns:
 - true if resource is null or doesn't exist
 - See Also:
 
 - 
isDirectory
True if resource is a valid directory.- Parameters:
 resource- the resource to test- Returns:
 - true if resource is non-null, exists, and is a directory
 - See Also:
 
 - 
isReadable
True if resource is readable.- Parameters:
 resource- the resource to test- Returns:
 - true if resource is non-null, exists, and is readable
 - See Also:
 
 - 
isReadableDirectory
True if resource is a valid directory that can be read from.- Parameters:
 resource- the resource to test- Returns:
 - true if resource is non-null, exists, and is a directory
 - See Also:
 
 - 
isReadableFile
True if resource exists, is not a directory, is readable.- Parameters:
 resource- the resource to test- Returns:
 - true if resource exists, is not a directory, is
 
 
 -