{"id":20349946,"url":"https://github.com/fdero/bits4j","last_synced_at":"2026-03-17T23:08:55.615Z","repository":{"id":259217598,"uuid":"865703490","full_name":"fDero/Bits4j","owner":"fDero","description":"A simple java library to perform low-level bits manipulations and conversions (hosted on maven-central)","archived":false,"fork":false,"pushed_at":"2024-10-24T16:46:40.000Z","size":53,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-19T09:05:04.817Z","etag":null,"topics":["bit-conversion","bit-converter","bit-manipulation","java","java-21","low-level"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/fDero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-10-01T01:32:54.000Z","updated_at":"2024-11-05T13:26:34.000Z","dependencies_parsed_at":"2024-10-23T16:01:38.075Z","dependency_job_id":"b7e46fc6-b9a4-46d3-be56-213b4b52d05a","html_url":"https://github.com/fDero/Bits4j","commit_stats":null,"previous_names":["fdero/bits4j"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/fDero/Bits4j","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fDero%2FBits4j","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fDero%2FBits4j/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fDero%2FBits4j/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fDero%2FBits4j/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fDero","download_url":"https://codeload.github.com/fDero/Bits4j/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fDero%2FBits4j/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30635156,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T22:38:22.569Z","status":"ssl_error","status_checked_at":"2026-03-17T22:38:11.804Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["bit-conversion","bit-converter","bit-manipulation","java","java-21","low-level"],"created_at":"2024-11-14T22:28:16.283Z","updated_at":"2026-03-17T23:08:55.551Z","avatar_url":"https://github.com/fDero.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"![license: MIT](https://img.shields.io/badge/license-MIT-blue)\r\n[![Maven Central](https://img.shields.io/maven-central/v/io.github.fdero/bits4j.svg)](https://img.shields.io/maven-central/v/io.github.fdero/bits4j)\r\n[![javadoc](https://javadoc.io/badge2/io.github.fdero/bits4j/javadoc.svg)](https://javadoc.io/doc/io.github.fdero/bits4j)\r\n\r\n# Bits4j\r\nA simple user-friendly library to perform bits manipulations in java. You might find this useful if you're implementing\r\ncompression/encryption algorithms. \r\n\r\n### Include bits4j in your projects\r\nYou can include the latest version of `bits4j` in your maven project adding the following dependency tag:\r\n```xml\r\n\u003cdependency\u003e\r\n    \u003cgroupId\u003eio.github.fdero\u003c/groupId\u003e\r\n    \u003cartifactId\u003ebits4j\u003c/artifactId\u003e\r\n    \u003cversion\u003eLATEST\u003c/version\u003e\r\n\u003c/dependency\u003e\r\n```\r\n\r\n### Brief overview\r\n- This library comes with the `BitValue` enum, wich has two values, `BitValue.ZERO` and `BitValue.ONE`. \r\n- You can create a `BitList` (an efficient implementation of `List\u003cBitValue\u003e`) to store them.\r\n- You can use `BitListConversions` to convert between `byte`,`int`,`long`,`String` and `BitList`.\r\n- The `BitReader` is a wrapper around `InputStream` that allows the user to read bit by bit.\r\n- The `BitWriter` is a wrapper around `OutputStream` that allows the user to write bit by bit.\r\n- The `flush` method of `BitWriter` ignores the last bits if they are not part of a byte.\r\n- The `BitWriter` has a `addPadding` method that adds zeros to complete the byte.\r\n- The `BitListInputStream` it's an implementation of `InputStream` that reads from a `List\u003cBitValue\u003e`.\r\n- The `BitListOutputStream` it's an implementation of `OutputStream` that writes to `List\u003cBitValue\u003e`.\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdero%2Fbits4j","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffdero%2Fbits4j","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffdero%2Fbits4j/lists"}