{"id":29724588,"url":"https://github.com/mastersign/hark","last_synced_at":"2025-07-24T21:22:29.041Z","repository":{"id":62432861,"uuid":"54271798","full_name":"mastersign/hark","owner":"mastersign","description":"A Java / Clojure library, providing an OutputStream for parsing separated strings.","archived":false,"fork":false,"pushed_at":"2016-03-24T07:19:57.000Z","size":28,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-01T06:18:48.679Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mastersign.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-19T15:06:40.000Z","updated_at":"2016-03-21T08:36:15.000Z","dependencies_parsed_at":"2022-11-01T21:16:01.912Z","dependency_job_id":null,"html_url":"https://github.com/mastersign/hark","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/mastersign/hark","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastersign%2Fhark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastersign%2Fhark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastersign%2Fhark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastersign%2Fhark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mastersign","download_url":"https://codeload.github.com/mastersign/hark/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mastersign%2Fhark/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266904631,"owners_count":24004135,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-07-24T21:22:22.567Z","updated_at":"2025-07-24T21:22:29.033Z","avatar_url":"https://github.com/mastersign.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hark\n\n[![Build Status][travis-img]][travis-url]\n[![Clojars Project][clojars-img]][clojars-url]\n\n\u003e A Java / Clojure library, providing a `java.io.OutputStream` for parsing separated strings.\n\nInspired by ideas of Daniel Kiertscher.\n\n## Usage\n\nThis library can be used as a Clojure library as well as a Java library.\n\n### Clojure\n\nAdd `[hark \"0.1.0\"]` to the dependencies in your `project.clj`.\n\n```clojure\n(require '(clojure.java.io :as io))\n(require '(net.kiertscher.io.hark :as h))\n\n(defn handler\n  [s]\n  (println (str \"Detected line: \" s)))\n\n(with-open [s (h/tap handler :charset \"UTF-8\")]\n  ;; write large amounts of encoded text to s\n  ;; handler is called for every decoded line\n  )\n```\n\n### Java\n\nDownload the [latest release] and put in on your class path.\n\n```java\nimport java.nio.charset.Charset;\nimport net.kiertscher.io.hark.StringListener;\nimport net.kiertscher.io.hark.StringParsingOptions;\nimport net.kiertscher.io.hark.StringParsingOutputStream;\n\n...\n\nStringListener listener = new StringListener() {\n    public void onString(String s) {\n        System.out.println(\"Detected line: \" + s);\n    }\n};\n\nStringParsingOptions opts = new StringParsingOptions(\n    Charset.forName(\"UTF-8\")\n);\nStringParsingOutputStream s = new StringParsingOutputStream(listener, opts);\n\n// write encoded text data to s\n// listener.onString(s) is called for every decoded line\n\ns.close();\n\n...\n```\n\n## License\n\nCopyright © 2016 Tobias Kiertscher \u003cdev@mastersign.de\u003e\n\nDistributed under the Eclipse Public License either version 1.0 or\n(at your option) any later version.\n\n[travis-img]: https://img.shields.io/travis/mastersign/hark/master.svg\n[travis-url]: https://travis-ci.org/mastersign/hark\n[clojars-img]: https://img.shields.io/clojars/v/hark.svg\n[clojars-url]: https://clojars.org/hark\n[latest release]: https://github.com/mastersign/hark/releases/latest\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastersign%2Fhark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmastersign%2Fhark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmastersign%2Fhark/lists"}