Java Utility Package (Freeware)
A fast and easy to use programming toolkit for the Java backend developer
Follow the development at Mastodon #JavaUtil.
Please let me know what you like and what needs improvement. You can reach me via email andy.brunner@k43.ch
Features
Easy to use logging functions based on the standard Java Logger framework with additional logging handlers (JDBC and SMTP) and logging formatters (tabular text, CSV, XML, JSON, YAML)
Access any JDBC compliant database and retrieve data in various formats (JSON, YAML, CSV, XML, tabular or raw Java object format)
Create and send MIME multi part SMTP message with text, HTML and file attachment
Call HTTP/HTTPS services with support for all major HTTP methods
Start a TCP server (TLS or non-TLS) to handle client requests with user written class
Connect as a TCP client to a server (TLS or non-TLS) to read and write data
Convenient class to start and terminate Java threads
Read and write complete files (byte, character, Java Properties or JSON data)
Several utility functions as static methods
HTTP Example
JDBC Example
Prerequisites
Java SE 1.8 (Java 8) or higher
JDBC Driver (used only by the KDB class)
Java Mail API/Jakarta EE (used only by the KSMTPMailer class)
org.json.JSONObject (used only by the KFile class)
Installation / Usage
Download the latest Java JAR file
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
Motivation for this toolkit
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 freeware projects).
This collection of Java classes was created in the course of various projects and will be further developed. I hope that this tool will also serve you well.
Freeware / Unlicensed
This software is freeware and unlicensed. 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 😊
Author
If you encounter any issue or if you have a suggestion, please let me know. You may contact me via my email address andy.brunner@k43.ch.
Credits
Foto by iMattSmart (unsplash.com)
Last updated