{"id":20508340,"url":"https://github.com/citrineinformatics/jpif","last_synced_at":"2026-01-14T03:26:48.644Z","repository":{"id":57731579,"uuid":"50642728","full_name":"CitrineInformatics/jpif","owner":"CitrineInformatics","description":"Java tools for working with PIF's","archived":false,"fork":false,"pushed_at":"2022-11-15T23:49:58.000Z","size":327,"stargazers_count":0,"open_issues_count":6,"forks_count":3,"subscribers_count":19,"default_branch":"master","last_synced_at":"2024-04-11T15:43:17.164Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/CitrineInformatics.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}},"created_at":"2016-01-29T06:23:51.000Z","updated_at":"2019-09-24T16:12:22.000Z","dependencies_parsed_at":"2022-09-07T19:41:15.910Z","dependency_job_id":null,"html_url":"https://github.com/CitrineInformatics/jpif","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CitrineInformatics%2Fjpif","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CitrineInformatics%2Fjpif/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CitrineInformatics%2Fjpif/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/CitrineInformatics%2Fjpif/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/CitrineInformatics","download_url":"https://codeload.github.com/CitrineInformatics/jpif/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224838378,"owners_count":17378288,"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","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":"2024-11-15T20:18:10.880Z","updated_at":"2026-01-14T03:26:48.599Z","avatar_url":"https://github.com/CitrineInformatics.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JPIF\n\nJava tools for working with Physical Information Files (http://www.citrine.io/pif).\n\nThis package includes java objects for all items in the Physical Information File (PIF). Files formatted in the PIF\nschema can be serialized and deserialized using included methods.\n\n## Compilation\n\nIt is possible to build a jar for this package using `mvn clean install`.\n\nAn uber jar containing all of the dependencies can be created using `mvn clean install -Pvalidator`. This jar can in \nturn be executed using `java -jar target/jpif-validator.jar path/to/pif [max records to validate]` in order to validate the \ncontent of a file that contains PIF records.\n\nAn uber jar containing all of the dependencies can be created using `mvn clean install -Pparser`. This jar can in \nturn be executed using `java -jar target/jpif-parser.jar path/to/pif` in order to read the content of a PIF file, convert to\n a rigid schema, and print to standard out.\n\n\n## Usages\n\n### Reading PIF-formatted sources\n\nGiven an input stream, reader, or string, PIF systems can be read using e.g.\n\n```java\nPifObjectStream pifObjectStream = new PifObjectStream(inputStream);\nfor (System system : pifObjectStream) {\n    // Do work on system\n}\npifObjectStream.close();\n```\n\n### Writing PIF records\n\nWriting a single PIF system to a string:\n\n```java\nSystem system = new System();\nString systemString = PifObjectMapper.getInstance().writeValueAsString(system);\n```\n\nWriting a list of PIF systems to a string:\n\n```java\nList\u003cSystem\u003e systems = new ArrayList\u003c\u003e();\nString systemsString = PifObjectMapper.getInstance().getSystemListWriter().writeValueAsString(systems);\n```\n\nConverting a PIF system, list of PIF systems, or `PifObjectStream` to an `InputStream`:\n\n```java\nInputStream inputStream = new PifInputStream(pifObjectStream);\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitrineinformatics%2Fjpif","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcitrineinformatics%2Fjpif","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcitrineinformatics%2Fjpif/lists"}