private void writeInt(int n) {
		if (posInWriteBuffer >= writeBuffer.length) {
			try {
				annotFile.seek(absoluteWritePos);
				annotFile.write(writeBuffer);
				absoluteWritePos += writeBuffer.length;
			} catch (IOException ex) {
				throw new RuntimeException(ex);
			}
			Arrays.fill(writeBuffer, (byte) 0);
			posInWriteBuffer = 0;
		}
		for (int mask = 24; mask >= 0; mask -= 8) {
			writeBuffer[posInWriteBuffer++] = (byte) (n >> mask);
		}
	}