def read(self, n=None):
        """Read n bytes.

        Returns exactly n bytes of data unless the underlying raw IO
        stream reaches EOF or if the call would block in non-blocking
        mode. If n is negative, read until EOF or until read() would
        block.
        """
        self._checkReadable()       # Jython: to forbid use in an invalid state
        if n is not None and n < -1:
            raise ValueError("invalid number of bytes to read")
        with self._read_lock:
            return self._read_unlocked(n)
dataset/ETHPy150Open azoft-dev-team/imagrium/env/Lib/_jyio.py/BufferedReader.read/original