當前位置: 首頁>>代碼示例>>Python>>正文


Python codecs.StreamReader方法代碼示例

本文整理匯總了Python中codecs.StreamReader方法的典型用法代碼示例。如果您正苦於以下問題:Python codecs.StreamReader方法的具體用法?Python codecs.StreamReader怎麽用?Python codecs.StreamReader使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在codecs的用法示例。


在下文中一共展示了codecs.StreamReader方法的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。

示例1: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='utf-8',
        encode=encode,
        decode=decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    ) 
開發者ID:war-and-code,項目名稱:jawfish,代碼行數:12,代碼來源:utf_8.py

示例2: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='ascii',
        encode=Codec.encode,
        decode=Codec.decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
開發者ID:alsmith,項目名稱:multicast-relay,代碼行數:12,代碼來源:ascii.py

示例3: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='idna',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
開發者ID:danielecook,項目名稱:gist-alfred,代碼行數:12,代碼來源:codec.py

示例4: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='cp437',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )

### Decoding Map 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:14,代碼來源:cp437.py

示例5: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='cp874',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:cp874.py

示例6: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='undefined',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:12,代碼來源:undefined.py

示例7: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='quopri',
        encode=quopri_encode,
        decode=quopri_decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:12,代碼來源:quopri_codec.py

示例8: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='mac-roman',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:mac_roman.py

示例9: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='cp500',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:cp500.py

示例10: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='mac-croatian',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:mac_croatian.py

示例11: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='iso8859-11',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:iso8859_11.py

示例12: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='iso8859-2',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:iso8859_2.py

示例13: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='ptcp154',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )

### Decoding Map 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:14,代碼來源:ptcp154.py

示例14: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='iso8859-1',
        encode=Codec().encode,
        decode=Codec().decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamreader=StreamReader,
        streamwriter=StreamWriter,
    )


### Decoding Table 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:15,代碼來源:iso8859_1.py

示例15: getregentry

# 需要導入模塊: import codecs [as 別名]
# 或者: from codecs import StreamReader [as 別名]
def getregentry():
    return codecs.CodecInfo(
        name='string-escape',
        encode=Codec.encode,
        decode=Codec.decode,
        incrementalencoder=IncrementalEncoder,
        incrementaldecoder=IncrementalDecoder,
        streamwriter=StreamWriter,
        streamreader=StreamReader,
    ) 
開發者ID:glmcdona,項目名稱:meddle,代碼行數:12,代碼來源:string_escape.py


注:本文中的codecs.StreamReader方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。