Package-level declarations
Platform information and other useful utilities. Includes basic program settings support at the Platform object (like loading and retrieving system settings).
Provides a logging management capabilities abstracting the application from logging libraries.
The following code block shows the most common use cases for the logging utilities:
Types
Exception with a numeric code.
Exception with a list of causes. Cause is null
as it can't be told which one of the list is the cause.
Properties
Internet address used to bind services to all local network interfaces.
This flag is true when assertions are enabled in the JVM (-ea
flag). Assertions are disabled by default in the JVM, but they are enabled (and should be that way) on the tests.
Default logger for when you feel too lazy to declare one.
Internet address used to bind services to the loop-back interface.
Functions
.
.
.
.
Return the stack trace array of the frames that starts with the given prefix.
.
Syntactic sugar to create an Internet address.
Check if a port is already opened.
Log a message, with associated exception information.
Logger constructor function.
Parse a time duration allowing a more relaxed format: with spaces or commas, lowercase characters and not forcing the text to start with 'P', however, the 'T' is still mandatory to separate date and time durations.
Parse a local date allowing only to specify the year or the year and the month. Missing month and day will be defaulted to january and one respectively.
Parse a time period allowing a more relaxed format: with spaces or commas, lowercase characters and not forcing the text to start with 'P'.
Convert a local date to a date.
Convert a local date time to a date.
Convert a zoned date time to a date.
Convert a date to a local date.
Convert a date to a local date time.
Calculate the aproximate number of days comprised in a time period.
Return the date time in a given time zone for a local date time.