OpenLoom v0.0.1
π§΅ OpenLoom v0.0.1 β First Official Release π
- Say hello to OpenLoom, a modern and lightweight Java library for smart file reading β built to make working with files effortless and fast π.
β¨ Highlights
-
π Read Files Easily β Read files with File or Path using a clean API.
-
π§ Adaptive Engine β Automatically chooses the best read strategy (BufferedReader, NIO, or Memory-Mapped) based on file size.
-
β‘ Asynchronous Support β Read files asynchronously using CompletableFuture.
-
π Line-by-Line Streaming β Stream lines in both sync and async modes.
-
π Multi-Charset Support β Read files with UTF-8, ISO-8859-1, UTF-16, and more.
-
βοΈ Zero Config β Just drop it in. No setup needed.
π§ͺ Example Usage
OpenLoom reader = new OpenLoom();
StringBuilder content = reader.read(new File("data.txt"));
System.out.println(content);
reader.readAsync(new File("large.txt")).thenAccept(content -> {
System.out.println("First 100 chars: " + content.substring(0, 100));
});
π Quick Links
π¦ Maven Central
π Javadoc
π Source Code
π‘ Examples Folder
β Support OpenLoom
β Requirements
Java 8 or above (JDK 17+ recommended)