Java Utility Package (Open Source)
Last updated
Last updated
Simplify logging with an easy-to-use framework based on the standard Java Logger. Includes enhanced logging handlers (JDBC and SMTP) and versatile logging formatters (Tabular Text, CSV, XML, JSON, and YAML).
Seamlessly access any JDBC-compliant database and retrieve data in multiple formats, including JSON, YAML, CSV, XML, tabular, or raw Java objects.
Create and send MIME multipart SMTP messages with support for text, HTML content, and file attachments.
Create raw TCP/IP socket applications or HTTP server applications (for web or REST services).
Leverage a convenient class for starting and terminating Java threads with ease.
Read and write files in various formats, including byte streams, character streams, Java Properties, and JSON data.
Access a large collection of static utility functions for common programming tasks.
The generation of native executable code with GraalVM is supported by including the necessary reflection definitions in the distributed JAR file.
The Java Utility Package does not require additional libraries with the exception of these classes:
KDB
KSMTPMailer, KLogSMTPHandler
KFile
Add import ch.k43.util.* statement in your Java code
Make sure that the file ch.k43.util.jar can be found at compile time and in the classpath at runtime
You may test the package by running the HelloWorld program, which is part of the distribution jar.
(Java 8) or higher
the latest Java JAR file
See the section on how to create a native binary executable with GraalVM.
In my professional life as an administrator and developer, I have benefited many times from countless freeware and open source products. It is therefore natural for me to also contribute to this community (see my other ).
This collection of Java classes was created in the course of various projects and will be further developed (see ). I hope that this tool will also serve you well.
This software is , and . It was created with love and passion in the beautiful country of 🇨🇭 Switzerland. This software shall be used for Good not Evil. As far as I know, no animal was harmed in the making of this software 😊