Java Utility Package (Freeware)
Fast and easy to use programming toolkit for the Java developer
Follow development at Mastodon #JavaUtil
Please send any feedback to andy.brunner@k43.ch
Features
Call HTTP/HTTPS services with support for all major HTTP methods
Start a TCP socket server (TLS or non-TLS) to handle client requests with user written class
Connect as a TCP socket client to a server (TLS or non-TLS) to read and write data
Read and write complete files (byte, character, Java Properties or JSON data)
Send MIME multi part SMTP messages with text, HTML and file attachment
Access any JDBC compliant database and retrieve data in various formats (JSON, CSV, XML, tabular or raw Java object format)
Easy to use logging functions based on the standard Java Logger framework with text, CSV, XML, JSON and JDBC output
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