An efficient, up-to-date reader/writer for Java properties files



Version Issues Pull Requests

JProperties is a small, highly efficient, and extensible library for parsing .properties files.

It is a modern replacement for the java.util.Properties class that utilizes the Java Collections Framework to parse properties directly to a Map<String, String>.

Developer ease-of-use is another priority for this library, and as such, it includes the xyz.maow.jproperties.JProperties class for easily reading properties from multiple supported sources within 1-2 lines.

The supported sources include InputStream, File, Path, byte[], String, Properties, and input streams retrieved from resources via fromResource(String).
All of the above also have a concurrency-safe counterpart that utilizes ConcurrentHashMap.

Other utilities are included amongst the necessities, these include things like PropertiesBuilder, TextUtils, etc.


JProperties is available on Maven Central

Groovy DSL
repositories {

dependencies {
    implementation "xyz.maow:jproperties:<version>"
Kotlin DSL
repositories {

dependencies {


Example: Reading properties from a file

// Properties

Path filePath = Paths.get("");
try (InputStream src = Files.newInputStream(filePath)) {
    Properties props = new Properties();
} catch (IOException e) {
// JProperties

Path filePath = Paths.get(""); 
Map<String, String> props = JProperties.from(filePath); // {"option": "value"}


Benchmark                             Mode  Cnt       Score      Error  Units
PropBenchmark.benchmark_JProperties  thrpt   15  336637.037 � 5804.054  ops/s
PropBenchmark.benchmark_Properties   thrpt   15  612128.919 � 8872.088  ops/s
You might also like...

Java Kampında derslerde yazılan projeler

nLayeredDemo JavaCampDay5Lesson linkteki derste yapılan proje. Nortwind JavaC

Dec 14, 2021

Engin DEMIROG yotube java kamp HW

Engin DEMIROG yotube java kamp HW

JavaBootCamp Engin DEMIROG yotube javaBootCamp HW ve projeler Java & React Bootcamp (https://kodlama.i

Nov 13, 2022

Software Developer Training Camp (JAVA + REACT) works under the guidance of Engin Demiroğ [EN] Java_React-BootCamp Software Developer Training Camp (JAVA + REACT) works under the gu

Dec 24, 2022

A Java game Solitaire, made with JavaFX

Java Solitaire A game made with JavaFX Installation requirements: At least Java 11 installed. setup: 2.1. Intellij - Open the file in the IDE and exe

May 6, 2021

Bitcoin SV Library for Java

Introduction Overview Bitcoin4J is a Bitcoin library for the Java Language licensed under the Apache License 2.0. This library has been built in line

May 25, 2022

Repository for Bryn and Ethan's Java with MicroServices Batch

210607-FeederProgram This repository houses examples and environment setup for the Revature feeder program beginning on 6/7/2021 Environment Setup Gui

May 22, 2022

Códigos do Bootcamp Java Básico DIO

Curso Java Básico Digital Innovation One Tive a honra de fazer parceria com o pessoal da Digital Innovation One, com doi

Jul 28, 2021

Slicer4J is an accurate, low-overhead dynamic slicer for Java programs.

Slicer4J is an accurate, low-overhead dynamic slicer for Java programs.

Slicer4J This repository hosts Slicer4J, an accurate, low-overhead dynamic slicer for Java programs. Slicer4J automatically generates a backward dynam

Dec 19, 2022

Ejercicios de CodeSignal resueltos en Java

Ejercicios de CodeSignal resueltos en Java

CodeSignal Ejercicios resueltos en Java de la plataforma CodeSignal. Crear el proyecto con Maven Abrimos un terminal y ejecutamos el siguiente comando

Sep 21, 2021
Kotlin/Java/Rust programmer, makes weird and/or fun open-source projects.
Modern Java - A Guide to Java 8

Modern Java - A Guide to Java 8 This article was originally posted on my blog. You should also read my Java 11 Tutorial (including new language and AP

Benjamin Winterberg 16.1k Dec 29, 2022
Design patterns implemented in Java

Design patterns implemented in Java Read in different language : CN, KR, FR, TR, AR Introduction Design patterns are the best formalized practices a p

Ilkka Seppälä 79k Jan 2, 2023
Java EE 7 Samples

Java EE 7 Samples This workspace consists of Java EE 7 Samples and unit tests. They are categorized in different directories, one for each Technology/

JavaEE Samples 2.5k Dec 20, 2022
Solutions for some common algorithm problems written in Java.

Algorithms This repository contains my solution for common algorithms. I've created this repository to learn about algorithms and improve solutions to

Pedro Vicente Gómez Sánchez 2.8k Dec 30, 2022
Algorithms and Data Structures implemented in Java

Java : Algorithms and Data Structure The algorithms and data structures are implemented in Java. This is a collection of algorithms and data structure

Justin Wetherell 4.2k Jan 5, 2023
MCQs and coding questions solutions of Object-Oriented Programming java of coding ninjas

cn-java-sols (⌐■_■) Link to This repository Other similar repository of my friend Link ?? enjoy having full marks ?? ?? now answers avaible up to Stri

Sanyam Mahajan 11 Dec 27, 2022
Rework of html-java-dsl to work with newer Javas

java-html-dsl Example DSL for writing html in Java. Rework of benjiman/java-html-dsl to work with newer versions of Java This String doc = html(

Benji Weber 19 Jan 25, 2022
A toolchain for Minecraft: Java Edition that builds a workspace to interact with the game using the official mappings provided to the public by Mojang Studios.

VanillaGradle is a toolchain for Minecraft: Java Edition that provides a workspace to interact with the game using official mappings provided by Mojan

SpongePowered 75 Nov 22, 2022
Amazing Ruby's "Enumerable" ported to Java

Overview How to use? .all .any .none .select .map .count .reject .find How to contribute? Contributors Overview enumerable4j is a Ruby's well known En

Yurii Dubinka 30 Oct 28, 2022
Java 16 Features

Java 16 Features. Features are separated by package name.

Rahman Usta 9 Jan 7, 2022