org.gjt.convert.binhex
Class DeBinHex

java.lang.Object
  |
  +--org.gjt.convert.binhex.DeBinHex

public class DeBinHex
extends java.lang.Object

Command line program to decode binhex files from the harddisk or from the web. It accepts the following command line parameters:

  • Either -u <url> or -f <file> to specify the source BinHexed file. If neither of those options is present, DeBinHex reads stdin.
  • -d to 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.
  • -r to 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.
  • Both -d/-df options and -r/-rf may be present at the same time. If none of these options is present, DeBinHex will decode the data fork as if the -d options was specified.
  • -h to only show the header of the BinHex file on stdout. The decoding options are ignored.
  • Author:
    Erwin Bolwidt

    Constructor Summary
    DeBinHex()
               
     
    Method Summary
    static void action(java.io.InputStream binhexIn, boolean justHeader, boolean doData, java.lang.String dataOut, boolean doResource, java.lang.String resourceOut)
               
    static void main(java.lang.String[] args)
               
     
    Methods inherited from class java.lang.Object
    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
     

    Constructor Detail

    DeBinHex

    public DeBinHex()
    Method Detail

    main

    public static void main(java.lang.String[] args)
                     throws java.lang.Exception

    action

    public static void action(java.io.InputStream binhexIn,
                              boolean justHeader,
                              boolean doData,
                              java.lang.String dataOut,
                              boolean doResource,
                              java.lang.String resourceOut)
                       throws java.io.IOException