Skip to content

OpenLoom v1.0.0

Latest

Choose a tag to compare

@raghul-tech raghul-tech released this 21 Oct 19:44
· 1 commit to main since this release

πŸŽ‰ OpenLoom v1.0.0 - Production Ready Java File I/O Library

The first stable release of OpenLoom is here! A lightweight, dependency-free Java file I/O toolkit that simplifies reading, writing, searching, and managing files.


πŸš€ What's New in 1.0.0

✨ Complete I/O Ecosystem

OpenLoom now offers four specialized managers for all your file operations:

  • 🧠 ReadManager - Advanced file reading with multiple strategies
  • ✍️ WriteManager - Reliable file writing and appending
  • πŸ” SearchManager - Powerful text search and modification
  • πŸ“‚ FileManager - Robust file system operations

🎯 Key Features That Set Us Apart

πŸ” Advanced Search Capabilities

// Range-limited search (UNIQUE to OpenLoom)
List<String> results = loom.search().findLineInRange(file, "error", 100, 200);
List<String> regexResults = loom.search().findLineRegexInRange(file, "ERROR.*", 50, 150);

// Safe operations with automatic backups
loom.search().replaceTextSafe(file, "old", "new"); // Creates backup automatically

πŸ“¦ Zero Dependencies, Maximum Power

  • No external dependencies - Pure Java 11+

  • Lightweight - Minimal footprint in your project

  • Easy updates - No dependency conflicts

πŸ›‘οΈ Built-in Safety Features

  • Recursion protection in directory operations

  • Automatic validation with detailed error messages

  • Atomic operations with proper fallback handling

πŸ”„ Dual Input Support

// Works with both File and Path seamlessly
loom.read().read(new File("data.txt"));        // Traditional File API
loom.read().read(Paths.get("data.txt"));       // Modern Path API

##πŸ† Why OpenLoom is Easier to Use

🎯 Single Entry Point

// One class for all file operations vs multiple utility classes
OpenLoom loom = new OpenLoom();
loom.read().read(file);
loom.write().write(file, content);
loom.search().findLine(file, "pattern");

###⚑ Simplified Complex Operations

// Before: Manual coding for advanced search
// Multiple loops, buffer management, error handling...

// After: One method call
List<String> results = loom.search().findLineRegexInRange(file, "pattern", start, end);

###πŸ›‘οΈ Built-in Safety

// Automatic backups for risky operations
loom.search().replaceTextSafe(file, "old", "new"); // No manual backup code needed

πŸ”„ Flexible API

// Works with both File and Path without conversion
loom.file().copyFile(new File("src.txt"), Paths.get("dest.txt"));

⚑ Performance Highlights

  • Memory-mapped I/O for large file handling

  • Customizable buffers for optimal memory usage

  • Efficient algorithms for fast search and replace

  • Synchronous design for predictable performance

πŸ“₯ Installation

Maven

<dependency>
    <groupId>io.github.raghul-tech</groupId>
    <artifactId>openloom</artifactId>
    <version>1.0.0</version>
</dependency>

Gradle

implementation 'io.github.raghul-tech:openloom:1.0.0'

##🎯 Perfect For

πŸ”§ Configuration Management - Safe updates to config files

  • πŸ“Š Log Processing - Advanced search and analysis

  • πŸ—‚οΈ Data Migration - Bulk file operations with safety

  • πŸ“ Document Processing - Large-scale text manipulation

πŸ”— Links

πŸ“¦ Maven Central

πŸ“š Documentation: Javadocs

πŸ› Issues: Report Bugs

πŸ“– README: Getting Started Guide

Ready to simplify your file operations? Give OpenLoom a try today! πŸš€