The Util Class

The Util class provides methods for determining if files and URLs can be read.

Methods

Class methods are static methods that do not require an object. The method name is prefixed by the class name.

Table 1. Class Methods (Static Member Methods)
Name Description
Boolean fileIsReadable(String path)
Tests whether a file is readable. This method checks that the file exists and that the engine has the privileges to open the file for reading.
Boolean urlIsReadable(String url)
Tests whether a URL is readable. This method checks that a URL exists and that the engine is able to read from it.

Usage

With RTL classes, it is not possible to create and subclass objects. The new keyword is not supported.