{"id":18909151,"url":"https://github.com/jruby/jzlib","last_synced_at":"2026-03-06T22:30:20.574Z","repository":{"id":177229187,"uuid":"645467768","full_name":"jruby/jzlib","owner":"jruby","description":"JRuby's fork of the jzlib pure-Java zlib library","archived":false,"fork":false,"pushed_at":"2023-05-25T18:30:36.000Z","size":217,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-12-31T12:30:19.383Z","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":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jruby.png","metadata":{"files":{"readme":"README","changelog":"ChangeLog","contributing":null,"funding":null,"license":"LICENSE.txt","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":"2023-05-25T18:10:13.000Z","updated_at":"2023-08-20T03:00:11.000Z","dependencies_parsed_at":"2023-07-10T12:16:27.974Z","dependency_job_id":null,"html_url":"https://github.com/jruby/jzlib","commit_stats":null,"previous_names":["jruby/jzlib"],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjzlib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjzlib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjzlib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jruby%2Fjzlib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jruby","download_url":"https://codeload.github.com/jruby/jzlib/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239896589,"owners_count":19715051,"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-08T09:31:18.512Z","updated_at":"2026-03-06T22:30:20.499Z","avatar_url":"https://github.com/jruby.png","language":"Java","readme":"Note: This version of jzlib has been taken over by the JRuby team due\nto the lack of maintenance of the original project.\n\n                                     JZlib\n\n                               zlib in pure Java(TM)\n                                by ymnk@jcraft.com, JCraft,Inc.\n\n                          http://www.jcraft.com/jzlib/\n\nLast modified: Mon Sep 19 15:28:43 UTC 2011\n\nDescription\n===========\nJZlib is a re-implementation of zlib in pure Java.\nThe first and final aim for hacking this stuff is\nto add the packet compression support to pure Java SSH systems.\n\n\nDocumentation\n=============\n* README files all over the source tree have info related to the stuff\n  in the directories. \n* ChangeLog: what changed from the previous version?\n* LICENSE.txt\n\n\nDirectories \u0026 Files in the Source Tree\n======================================\n* src/main/java has source trees of JZlib.\n* example/ has some samples, which demonstrate the usages.\n* misc/ has some stuffs. At present, this directory includes\n  a patch file for MindTerm v.1.2.1, which adds the packet compression\n  functionality.\n\n\nFeatures\n========\n* Needless to say, JZlib can inflate data, which is deflated by zlib and\n  JZlib can generate deflated data, which is acceptable and inflated by zlib.\n* JZlib supports all compression level and all flushing mode in zlib. \n* JZlib does not support gzip file handling supports.\n* The performance has not been estimated yet,  but it will be not so bad\n  in deflating/inflating data stream on the low bandwidth network.\n* JZlib is under BSD style license.\n* Any invention has not been done in developing JZlib.\n  So, if zlib is patent free, JZlib is also not covered by any patents.\n\n\nWhy JZlib?\n==========\nJava Platform API provides packages 'java.util.zip.*' for\naccessing to zlib, but that support is very limited \nif you need to use the essence of zlib. For example,\nwe needed to full access to zlib to add the packet compression\nsupport to pure Java SSH system, but they are useless for our requirements.\nThe Internet draft, SSH Transport Layer Protocol, says in the section '4.2 Compression' as follows,\n\n  The following compression methods are currently defined:\n    none  REQUIRED  no compression\n    zlib  OPTIONAL  GNU ZLIB (LZ77) compression\n  The \"zlib\" compression is described in [RFC-1950] and in [RFC-1951]. The\n  compression context is initialized after each key exchange, and is\n  passed from one packet to the next with only a partial flush being\n  performed at the end of each packet. A partial flush means that all data\n  will be output, but the next packet will continue using compression\n  tables from the end of the previous packet.\n\nTo implement this functionality, the Z_PARTIAL_FLUSH mode of zlib must be\nused, however JDK does not permit us to do so. It seems that this problem has\nbeen well known and some people have already reported to \nJavaSoft's BugParade(for example, BugId:4255743), \nbut any positive response has not been returned from JavaSoft, \nso this problem will not be solved forever. \nThis is our motivation to hack JZlib.\n\n\nBuilding Jar File\n=================\nUse 'sbt'(https://github.com/harrah/xsbt/wiki),\n  % sbt package\nor\n  % mvn package\nor\n  % cd src/main/java\n  % javac -target 1.5 com/jcraft/jzlib/*.java\n  % jar -cvf jzlib.jar com/jcraft/jzlib/*.class\n\n\nA unofficial patch for MindTerm v.1.2.1\n=======================================\nA unofficial patch file for MindTerm v.1.2.1 has included in 'misc' directory.\nIt adds the packet compression support to MindTerm. \nPlease refer to 'misc/README' file.\n\n\nCopyrights \u0026 Disclaimers\n========================\nJZlib is copyrighted by ymnk, JCraft,Inc. and is licensed through BSD\nstyle license.  Read the LICENSE.txt file for the complete license.\n\n\nCredits\n=======\nJZlib has been developed by ymnk@jcraft.com,\nbut he has just re-implemented zlib in pure Java.\nSo, all credit should go to authors Jean-loup Gailly and Mark Adler\nand contributors of zlib.  Here is the copyright notice of zlib version 1.1.3,\n\n  |Copyright (C) 1995-1998 Jean-loup Gailly and Mark Adler\n  |\n  |This software is provided 'as-is', without any express or implied\n  |warranty.  In no event will the authors be held liable for any damages\n  |arising from the use of this software.\n  |\n  |Permission is granted to anyone to use this software for any purpose,\n  |including commercial applications, and to alter it and redistribute it\n  |freely, subject to the following restrictions:\n  |\n  |1. The origin of this software must not be misrepresented; you must not\n  |   claim that you wrote the original software. If you use this software\n  |   in a product, an acknowledgment in the product documentation would be\n  |   appreciated but is not required.\n  |2. Altered source versions must be plainly marked as such, and must not be\n  |   misrepresented as being the original software.\n  |3. This notice may not be removed or altered from any source distribution.\n  |\n  |Jean-loup Gailly        Mark Adler\n  |jloup@gzip.org          madler@alumni.caltech.edu\n\n\nIf you have any comments, suggestions and questions, write us \nat jzlib@jcraft.com\n\n\n``SSH is a registered trademark and Secure Shell is a trademark of\nSSH Communications Security Corp (www.ssh.com)''.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjzlib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjruby%2Fjzlib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjruby%2Fjzlib/lists"}