JBinHex is both a library and a command-line tool to decode files in the Apple Macintosh BinHex 4.0 format.
Current version: 0.5
- 0.5 First released version
Limitations in this version
- This version does not support segmented files such as used
- Documentation is limited
- Command line tool has does not check wether the command line parameters are completely correct
Possible future features
- Encoding of BinHex files
- File-based interface that allows to switch between data and resource fork at any moment, instead of the predetermined order that the stream-based interface dictates
The class name of the command-line tool is
It accepts the following command line parameters:
-f <file>to specify the source BinHexed file. If neither of those options is present,
-dto decode the data fork. It will be put in the file with the name that came from the BinHex header.
-df <filename>to decode the data fork to the named file instead of the name that came from the BinHex header.
-rto decode the resource fork. It will be put in the file with the name that came from the BinHex header, with the extension "
.resource" appended to it.
-rf <filename>to decode the resource fork to the named file instead of the name that came from the BinHex header.
-rfmay be present at the same time. If none of these options is present,
DeBinHexwill decode the data fork as if the
-doptions was specified.
-hto only show the header of the BinHex file on
stdout. The decoding options are ignored.
The Javadoc of the classes is included in the distribution and available online.
Download the complete package including source, javadoc and jarfile with classes (36 Kb).
The package is licensed under the GNU General Public License, also known as the GPL license. See file COPYING for details.
- Article written by Yves Lempereur, available as Appendix A in rfc1741
- Article titled BinHex 4.0 Definition by Peter N Lewis
All files in the package and on this site Copyright 2000 by Erwin Bolwidt, <email@example.com>
This page was last updated at april 8, 2000.