private void ensureOpen() throws IOException {
		if (in == null)
			throw new IOException("Stream closed");
	}
Checks to make sure that the stream has not been closed
Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/BoundedBufferedReader.java