Reed Solomon Java库-冗余分区文件 [英] Reed Solomon Java Library - Partitioning files with redundancy

查看:186
本文介绍了Reed Solomon Java库-冗余分区文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找Reed Solomon算法的Java库.

I'm looking for Java libraries of the Reed Solomon algorithm.

我需要的是以冗余方式将给定文件划分为不同的块.因此,在划分为N个块之后,我可以仅用这些块中的K个重建文件(其中k< N).这应该是Reed Solomon的主要功能之一.

What I need is to partition a given file in different chunks with redundancy. So, after partitioning in N chunks, I can re-build the file with just K of these chunks (Where k < N). This is supposed to be one of the key features of Reed Solomon.

这是我尝试过的:

  1. 我找到了 zxing ,我下载了core-xxjar并运行在我的计算机上测试成功.但是,通过阅读代码,我意识到它只支持QR码.

  1. I found zxing, I downloaded the core-x.x.jar and run the tests successfully in my computer. But, by reading the code I realised that it was written to only support QR codes.

我也尝试过库,但它无法正常运行,并且最近4年没有更新.

I have tried this library also, but it does not work properly and it has not been updated in the last 4 years.

我正在开始这个项目,我想用Java来做.但是,由于唯一受高度支持的库是用Python编写的,所以我可能只用Python完成整个项目(我宁愿不这样做).这是 zfec 库.

I'm starting this project and I want to do it in Java; however, since the only library highly supported is written in Python I might just do the whole project in Python (I would rather not). This is the zfec library.

关于Java库的任何提示吗?

Any hints on a Java library?

推荐答案

最后,我决定采用FEC的Java实现.

Finally, I have decided to go with a Java implementation of the FEC.

它基于洋葱网络 FEC库.

我为该库开发了一个包装器,希望该包装器可以更轻松地用于我需要的内容.它具有Junit测试和更简单的API,可从文件或字节数组创建块.

I developed a wrapper for that library that hopefully makes it easier to use for what I need. It has Junit tests and a simpler API for creating the chunks from a File or from a byte array.

此处是bitbucket中的公共存储库.

Take a look here if you are interested, it is a public repository in bitbucket.

这篇关于Reed Solomon Java库-冗余分区文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆