|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.python.modules.binascii
public class 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_qp
|
static PyString |
__doc__a2b_uu
|
static PyString |
__doc__b2a_base64
|
static PyString |
__doc__b2a_hex
|
static PyString |
__doc__b2a_hqx
|
static PyString |
__doc__b2a_qp
|
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 PyObject |
Error
|
static PyObject |
Incomplete
|
Constructor Summary | |
---|---|
binascii()
|
Method Summary | |
---|---|
static PyString |
a2b_base64(String ascii_data)
Convert a block of base64 data back to binary and return the binary data. |
static PyString |
a2b_hex(String argbuf)
|
static PyTuple |
a2b_hqx(String ascii_data)
Convert binhex4 formatted ASCII data to binary, without doing RLE-decompression. |
static PyString |
a2b_qp(PyObject[] arg,
String[] kws)
|
static PyString |
a2b_uu(String ascii_data)
Convert a single line of uuencoded data back to binary and return the binary data. |
static PyString |
b2a_base64(String bin_data)
Convert binary data to a line of ASCII characters in base64 coding. |
static PyString |
b2a_hex(String argbuf)
|
static PyString |
b2a_hqx(String bin_data)
Perform hexbin4 binary-to-ASCII translation and return the resulting string. |
static PyString |
b2a_qp(PyObject[] arg,
String[] kws)
|
static PyString |
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 PyObject |
exceptionNamespace()
|
static boolean |
getIntFlagAsBool(ArgParser ap,
int index,
int dflt,
String errMsg)
|
static PyString |
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 PyString |
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 PyObject Error
public static final PyObject 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
public static final PyString __doc__a2b_qp
public static final PyString __doc__b2a_qp
Constructor Detail |
---|
public binascii()
Method Detail |
---|
public static PyObject exceptionNamespace()
public static PyString a2b_uu(String ascii_data)
public static PyString b2a_uu(String bin_data)
public static PyString a2b_base64(String ascii_data)
public static PyString b2a_base64(String bin_data)
public static PyTuple a2b_hqx(String ascii_data)
public static String rlecode_hqx(String in_data)
public static PyString 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 PyString b2a_hex(String argbuf)
public static PyString hexlify(String argbuf)
public static PyString a2b_hex(String argbuf)
public static PyString unhexlify(String argbuf)
public static boolean getIntFlagAsBool(ArgParser ap, int index, int dflt, String errMsg)
public static PyString a2b_qp(PyObject[] arg, String[] kws)
public static PyString b2a_qp(PyObject[] arg, String[] kws)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |