- closeQuietly
Closes a StreamHelper quietly so that no exceptions are thrown.
- locked
Run function f having exclusive read/write access to the given file. Please note
that the implementa
- withResource
Handle a closeable resource inside f and ensure that r gets closed properly.
- acquireLock
Acquire a lock on a file. Return a key to release the lock.
- loadFileFromClassPathAsString
Load a classpath resource into a string using UTF-8 encoding and the class
loader of the given class
- loadPropertiesFromClassPath
Load a properties file from the classpath using the class loader of the given
class.
- loadPropertiesFromStream
Load properties from a stream. Close the stream after reading.
- openClassPathResource
Open a classpath resource using the class loader of the given class.
- readFileFromURL
Convenience method to read in a file from either a remote or local source.
- writeUTF8File
Writes the contents variable to the URL. Note that the URL must be a local URL.