def __init__(self, stream_adapter, input_callback=None, window=<NUM_LIT>,<EOL>close_adapter=True):
super(BytesExpecter, self).__init__(stream_adapter, input_callback,<EOL>window, close_adapter)<EOL>self._history = six.binary_type()<EOL>self._start = <NUM_LIT:0><EOL>
:param StreamAdapter stream_adapter: The :class:`StreamAdapter` object
    to receive data from.
:param function input_callback: Callback function with one parameter
    that is called each time new data is read from the
    *stream_adapter*.
:param int window: Number of historical bytes to buffer.