@Override
	public void close() throws IOException {
		if (fsRef != null) {
			fsRef.close();
			fsRef = null;
		}
		delegate.close();
	}
Creates a new {@link RefdInputStream}.

@param fsRef {@link FileSystemRef}
@param delegate the wrapped {@link InputStream}
Ghidra/Features/Base/src/main/java/ghidra/formats/gfilesystem/RefdInputStream.java