|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.python.modules.binascii
The binascii.java module contains a number of methods to convert between binary and various ASCII-encoded binary representations. Normally, you will not use these modules directly but use wrapper modules like uu or hexbin instead, this module solely exists because bit-manipuation of large amounts of data is slow in Python.
The binascii.java module defines the following functions:
| Field Summary | |
static String |
__doc__
|
static PyString |
__doc__a2b_base64
|
static PyString |
__doc__a2b_hqx
|
static PyString |
__doc__a2b_uu
|
static PyString |
__doc__b2a_base64
|
static PyString |
__doc__b2a_hex
|
static PyString |
__doc__b2a_hqx
|
static PyString |
__doc__b2a_uu
|
static PyString |
__doc__crc_hqx
|
static PyString |
__doc__rlecode_hqx
|
static PyString |
__doc__rledecode_hqx
|
static PyString |
a2b_hex$doc
|
static PyString |
Error
|
static PyString |
Incomplete
|
| Constructor Summary | |
binascii()
|
|
| Method Summary | |
static String |
a2b_base64(String ascii_data)
Convert a block of base64 data back to binary and return the binary data. |
static String |
a2b_hex(String argbuf)
|
static PyTuple |
a2b_hqx(String ascii_data)
Convert binhex4 formatted ASCII data to binary, without doing RLE-decompression. |
static String |
a2b_uu(String ascii_data)
Convert a single line of uuencoded data back to binary and return the binary data. |
static String |
b2a_base64(String bin_data)
Convert binary data to a line of ASCII characters in base64 coding. |
static String |
b2a_hex(String argbuf)
|
static String |
b2a_hqx(String bin_data)
Perform hexbin4 binary-to-ASCII translation and return the resulting string. |
static String |
b2a_uu(String bin_data)
Convert binary data to a line of ASCII characters, the return value is the converted line, including a newline char. |
static int |
crc_hqx(String bin_data,
int crc)
Compute the binhex4 crc value of data, starting with an initial crc and returning the result. |
static int |
crc32(String bin_data)
|
static int |
crc32(String bin_data,
long crc)
|
static String |
hexlify(String argbuf)
|
static String |
rlecode_hqx(String in_data)
Perform binhex4 style RLE-compression on data and return the result. |
static String |
rledecode_hqx(String in_data)
Perform RLE-decompression on the data, as per the binhex4 standard. |
static String |
unhexlify(String argbuf)
|
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static String __doc__
public static final PyString Error
public static final PyString Incomplete
public static PyString __doc__a2b_uu
public static PyString __doc__b2a_uu
public static PyString __doc__a2b_base64
public static PyString __doc__b2a_base64
public static PyString __doc__a2b_hqx
public static PyString __doc__rlecode_hqx
public static PyString __doc__b2a_hqx
public static PyString __doc__rledecode_hqx
public static PyString __doc__crc_hqx
public static PyString __doc__b2a_hex
public static PyString a2b_hex$doc
| Constructor Detail |
public binascii()
| Method Detail |
public static String a2b_uu(String ascii_data)
public static String b2a_uu(String bin_data)
public static String a2b_base64(String ascii_data)
public static String b2a_base64(String bin_data)
public static PyTuple a2b_hqx(String ascii_data)
public static String rlecode_hqx(String in_data)
public static String b2a_hqx(String bin_data)
public static String rledecode_hqx(String in_data)
public static int crc_hqx(String bin_data,
int crc)
public static int crc32(String bin_data)
public static int crc32(String bin_data,
long crc)
public static String b2a_hex(String argbuf)
public static String hexlify(String argbuf)
public static String a2b_hex(String argbuf)
public static String unhexlify(String argbuf)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||