Skip to content

Commit 3867f44

Browse files
committed
readme update
1 parent 4eee1db commit 3867f44

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

README.md

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
</p>
1010

1111
<p align="center">
12-
<a href="https://mvnrepository.com/artifact/io.github.raghul-tech/openloom">
12+
<a href="https://central.sonatype.com/artifact/io.github.raghul-tech/openloom">
1313
<img src="https://img.shields.io/maven-central/v/io.github.raghul-tech/openloom?style=for-the-badge&color=blueviolet" alt="Maven Central" />
1414
</a>
1515
<a href="https://github.com/raghul-tech/OpenLoom/actions/workflows/maven.yml">
@@ -64,6 +64,7 @@
6464

6565
```java
6666
import io.github.raghultech.openloom.OpenLoom;
67+
import io.github.raghultech.openloom.model.Match;
6768
import java.io.File;
6869
import java.util.List;
6970
import java.util.Map;
@@ -79,7 +80,7 @@ public class QuickStart {
7980
loom.write().write(new File("output.txt"), "Hello OpenLoom!");
8081

8182
// Advanced text search with regex support
82-
List<String> results = loom.search().findLineRegex(new File("log.txt"), "ERROR.*");
83+
List<Match> results = loom.search().findLineRegex(new File("log.txt"), "ERROR.*");
8384

8485
// File management with recursion protection
8586
loom.file().copyDir(new File("source"), new File("backup"), true);
@@ -189,6 +190,7 @@ public class WriteExample {
189190

190191
```java
191192
import io.github.raghultech.openloom.OpenLoom;
193+
import io.github.raghultech.openloom.model.Match;
192194
import java.io.File;
193195
import java.util.List;
194196

@@ -197,12 +199,12 @@ public class SearchExample {
197199
OpenLoom loom = new OpenLoom();
198200

199201
// Flexible search operations
200-
List<String> results = loom.search().findLine(file, "searchTerm");
201-
List<String> rangeResults = loom.search().findLineInRange(file, "term", 10, 50);
202+
List<Match> results = loom.search().findLine(file, "searchTerm");
203+
List<Match> rangeResults = loom.search().findLineInRange(file, "term", 10, 50);
202204

203205
// Regex-powered search capabilities
204-
List<String> regexResults = loom.search().findLineRegex(file, "pattern.*");
205-
List<String> rangeRegex = loom.search().findLineRegexInRange(file, "pattern", 0, 100);
206+
List<Match> regexResults = loom.search().findLineRegex(file, "pattern.*");
207+
List<Match> rangeRegex = loom.search().findLineRegexInRange(file, "pattern", 0, 100);
206208

207209
// Content modification with precision
208210
loom.search().replaceText(file, "old", "new");
@@ -262,7 +264,7 @@ loom.search().replaceTextSafe(
262264

263265
```java
264266
// Extract insights from application logs
265-
List<String> errors = loom.search().findLineRegex(
267+
List<Match> errors = loom.search().findLineRegex(
266268
new File("application.log"),
267269
"ERROR.*Exception"
268270
);
@@ -394,4 +396,4 @@ Email: [[email protected]](mailto:[email protected])
394396

395397
---
396398

397-
<p align="center"> <strong>Built with ❤️ for the Java Community</strong><br> <em>Making file I/O operations simple and efficient</em> </p>
399+
<p align="center"> <strong>Built with ❤️ for the Java Community</strong><br> <em>Making file I/O operations simple and efficient</em> </p>

0 commit comments

Comments
 (0)