@Override
	public void write(@Nonnull byte[] bytes) throws IOException {
		if (output == null)
			output = bytes;
		else {
			int existingContentLength = output.length;
			int newContentLength = bytes.length;
			int mergedLength = existingContentLength + newContentLength;
			if (mergedLength < 0) // Overflow check
				throw new IllegalStateException("Content too large to write to a single byte[]");
			byte[] newOutput = new byte[mergedLength];
			System.arraycopy(output, 0, newOutput, 0, existingContentLength);
			System.arraycopy(bytes, 0, newOutput, existingContentLength, newContentLength);
			output = newOutput;
		}
	}
Export consumer to write to a {@code byte[]}. Only supports {@link WorkspaceOutputType#FILE}.

@author Matt Coley
recaf-core/src/main/java/software/coley/recaf/services/workspace/io/ByteArrayWorkspaceExportConsumer.java