共用方式為


QueueMessageFormat 類別

編碼和解碼方法,可用來修改佇列服務編碼和解碼佇列訊息的方式。 將這些設定為queueservice.encode_function,並queueservice.decode_function來修改行為。 預設值分別為 text_xmlencode 和 text_xmldecode。

繼承
builtins.object
QueueMessageFormat

建構函式

QueueMessageFormat()

方法

binary_base64decode

Base64 解碼為位元組字串。

binary_base64encode

Base64 編碼位元組字串。

nodecode

請勿解碼。

noencode

請勿編碼。

text_base64decode

Base64 解碼為 Unicode 文字。

text_base64encode

Base64 編碼 Unicode 文字。

text_xmldecode

XML 解碼為 unicode 文字。

text_xmlencode

XML 編碼 Unicode 文字。

binary_base64decode

Base64 解碼為位元組字串。

static binary_base64decode(data)

參數

data
str
必要

要解碼為位元組字串的資料。

傳回

Base64 解碼的資料。

傳回類型

str

binary_base64encode

Base64 編碼位元組字串。

static binary_base64encode(data)

參數

data
str
必要

要編碼的二進位字串。

傳回

Base64 編碼的資料。

傳回類型

str

nodecode

請勿解碼。

static nodecode(data)

參數

data
str
必要

資料。

傳回

傳入的資料會傳回未修改。

傳回類型

str

noencode

請勿編碼。

static noencode(data)

參數

data
str
必要

資料。

傳回

傳入的資料會傳回未修改。

傳回類型

str

text_base64decode

Base64 解碼為 Unicode 文字。

static text_base64decode(data)

參數

data
str
必要

要解碼為 unicode 的字串資料。

傳回

Base64 解碼字串。

傳回類型

str

text_base64encode

Base64 編碼 Unicode 文字。

static text_base64encode(data)

參數

data
str
必要

要編碼的字串。

傳回

Base64 編碼字串。

傳回類型

str

text_xmldecode

XML 解碼為 unicode 文字。

static text_xmldecode(data)

參數

data
str
必要

要解碼為 unicode 的資料。

傳回

XML 解碼的資料。

傳回類型

str

text_xmlencode

XML 編碼 Unicode 文字。

static text_xmlencode(data)

參數

data
str
必要

要編碼的 Unicode 字串

傳回

XML 編碼的資料。

傳回類型

str