static OutputBlockStream getOutputBlockStream(BufferFile bufferFile, int blockCount)
			throws IOException {
		// This method is used so we can utilize a package method and avoid putting
		// it on the BufferFile interface
		if (bufferFile instanceof BufferFileAdapter) {
			return ((BufferFileAdapter) bufferFile).getOutputBlockStream(blockCount);
		}
		if (bufferFile instanceof LocalBufferFile) {
			return ((LocalBufferFile) bufferFile).getOutputBlockStream(blockCount);
		}
		throw new IllegalArgumentException(
			"Unsupported buffer file implementation: " + bufferFile.getClass().getName());
	}
Factory method for generating the appropriate type of {@link OutputBlockStream}
for the specified write-able bufferFile.
@param bufferFile write-able buffer file
@param blockCount number of blocks to be written.  This should be available from
the corresponding {@link InputBlockStream}.
@return output block stream object
@throws IOException if an I/O error occurs
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java