function getContents(int $maxLength = -1, int $offset = 0): string {
		$contents = stream_get_contents ( $this->handle, $maxLength, $offset );
		if ($contents === false) {
			throw new IOException ( __METHOD__ . ' failed' );
		}
		return $contents;
	}