@Override
		public void close() throws IOException {
			synchronized (LocalBufferFile.this) {

				if (isClosed) {
					return;
				}
				isClosed = true;

				if (raf == null) {
					throw new ClosedException();
				}

				try {
					if (refreshOnClose) {

						// read file header required
						readHeader();

						// restore fileId within file
						fileId = orignalFileId;
						seekBlock(0, FILE_ID_OFFSET);
						raf.writeLong(fileId);
					}
				}
				finally {
					activeOutputBlockStream = null;
				}

				// don't close file
			}
		}
<code>LocalOutputBlockStream</code> provides an OutputBlockStream for
updating specific buffers of a non-read-only file.
Ghidra/Framework/DB/src/main/java/db/buffers/LocalBufferFile.java