使用Java代码进行Binhex解码 [英] Binhex decoding using java code
问题描述
可能重复:
用Java解码Base64数据
我有一个Java文件将从某个位置下载。这些文件是BinHex编码的。
是否有可用的jar文件,我可以在Java代码中使用该文件来解码binhex文件?
I have a java file which will be downloaded from a location. The files are BinHex encoded. Is there any jar file available which i can use in java code to decode the binhex file?
请帮助我。
推荐答案
Apache commons有一个名为 BCodec ,它允许指定自定义字符序列进行编码。
Apache commons has a class called BCodec that allows specifying custom character sequence for encoding. Maybe you can adapt it to your needs?
无论如何,Base64和BinHex背后的机制非常相似,您可以采用此类,并根据需要进行更新。我认为修改char序列可能就足够了。
In any case mechanics behind Base64 and BinHex are very similar, you could take this class and update it to your needs. I think modifying char sequence may be enough.
编辑:
这是 BinConverter 。
这篇关于使用Java代码进行Binhex解码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!