def METHOD_NAME(self):
    if self._cached is None:
        try:
            self._cached = self.raw.read()
        finally:
            self.raw.close()
            self.raw = None
    return self._cached