Source code for pysparkling.fileio.codec.codec
import logging
log = logging.getLogger(__name__)
[docs]class Codec(object):
"""Codec."""
def __init__(self):
pass
[docs] def compress(self, stream):
"""Compress.
:param io.BytesIO stream: Uncompressed input stream.
:rtype: io.BytesIO
"""
return stream
[docs] def decompress(self, stream):
"""Decompress.
:param io.BytesIO stream: Compressed input stream.
:rtype: io.BytesIO
"""
return stream