Skip to content

Support for reading from a file URI#179

Merged
w3stling merged 1 commit intomasterfrom
support-for-file-uri
Sep 15, 2024
Merged

Support for reading from a file URI#179
w3stling merged 1 commit intomasterfrom
support-for-file-uri

Conversation

@w3stling
Copy link
Owner

@w3stling w3stling commented Sep 15, 2024

Added support for reading from file URI.

Example reading from a single file:

List<Item> items = new RssReader().read("file:/path/to/file").toList();

Example reading from a mix of files and URLs:

List<String> sources = List.of(
   "file:/path/to/file",
   "https://www.nasa.gov/news-release/feed/",
   "file:///path/to/another/file",
   "https://www.engadget.com/rss.xml"));

List<Item> items = new RssReader().read(sources).toList();

@w3stling w3stling added the enhancement New feature or request label Sep 15, 2024
@sonarqubecloud
Copy link

@github-actions
Copy link

Test Results

 10 files   10 suites   34s ⏱️
277 tests 275 ✅ 2 💤 0 ❌
285 runs  283 ✅ 2 💤 0 ❌

Results for commit e9fb459.

@w3stling w3stling merged commit a86e7fc into master Sep 15, 2024
@w3stling w3stling deleted the support-for-file-uri branch September 15, 2024 07:59
@w3stling w3stling changed the title Support for reading from file URI Support for reading from a file URI Sep 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant