binhex
index
/usr/lib/python2.2/binhex.py

Macintosh binhex compression/decompression.
 
easy interface:
binhex(inputfilename, outputfilename)
hexbin(inputfilename, outputfilename)

 
Modules
            
binascii
os
struct
sys
 
Classes
            
BinHex
exceptions.Exception
Error
FInfo
HexBin
_Hqxcoderengine
_Hqxdecoderengine
_Rlecoderengine
_Rledecoderengine
openrsrc
 
class BinHex
       
   Methods defined here:
__init__(self, (name, finfo, dlen, rlen), ofp)
_write(self, data)
_writecrc(self)
_writeinfo(self, name, finfo)
close(self)
close_data(self)
write(self, data)
write_rsrc(self, data)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'binhex'
 
class Error(exceptions.Exception)
       
   Data and non-method functions defined here:
__doc__ = None
__module__ = 'binhex'

Methods inherited from exceptions.Exception:
__getitem__(...)
__init__(...)
__str__(...)
 
class FInfo
       
   Methods defined here:
__init__(self)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'binhex'
 
class HexBin
       
   Methods defined here:
__init__(self, ifp)
_checkcrc(self)
_read(self, len)
_readheader(self)
close(self)
close_data(self)
read(self, *n)
read_rsrc(self, *n)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'binhex'
 
class _Hqxcoderengine
      Write data to the coder in 3-byte chunks
 
   Methods defined here:
__init__(self, ofp)
_flush(self, force)
close(self)
write(self, data)

Data and non-method functions defined here:
__doc__ = 'Write data to the coder in 3-byte chunks'
__module__ = 'binhex'
 
class _Hqxdecoderengine
      Read data via the decoder in 4-byte chunks
 
   Methods defined here:
__init__(self, ifp)
close(self)
read(self, totalwtd)
Read at least wtd bytes (or until EOF)

Data and non-method functions defined here:
__doc__ = 'Read data via the decoder in 4-byte chunks'
__module__ = 'binhex'
 
class _Rlecoderengine
      Write data to the RLE-coder in suitably large chunks
 
   Methods defined here:
__init__(self, ofp)
close(self)
write(self, data)

Data and non-method functions defined here:
__doc__ = 'Write data to the RLE-coder in suitably large chunks'
__module__ = 'binhex'
 
class _Rledecoderengine
      Read data via the RLE-coder
 
   Methods defined here:
__init__(self, ifp)
_fill(self, wtd)
close(self)
read(self, wtd)

Data and non-method functions defined here:
__doc__ = 'Read data via the RLE-coder'
__module__ = 'binhex'
 
class openrsrc
       
   Methods defined here:
__init__(self, *args)
close(self)
read(self, *args)
write(self, *args)

Data and non-method functions defined here:
__doc__ = None
__module__ = 'binhex'
 
Functions
            
_test()
binhex(inp, out)
(infilename, outfilename) - Create binhex-encoded copy of a file
getfileinfo(name)
hexbin(inp, out)
(infilename, outfilename) - Decode binhexed file
 
Data
             LINELEN = 64
REASONABLY_LARGE = 32768
RUNCHAR = '\x90'
_DID_DATA = 1
_DID_HEADER = 0
_DID_RSRC = 2
__all__ = ['binhex', 'hexbin', 'Error']
__file__ = '/usr/lib/python2.2/binhex.pyc'
__name__ = 'binhex'