1 /******************************************************************************* 2 * Copyright (c) 2009, 2018 Mountainminds GmbH & Co. KG and Contributors 3 * All rights reserved. This program and the accompanying materials 4 * are made available under the terms of the Eclipse Public License v1.0 5 * which accompanies this distribution, and is available at 6 * http://www.eclipse.org/legal/epl-v10.html 7 * 8 * Contributors: 9 * Marc R. Hoffmann - initial API and implementation 10 * 11 *******************************************************************************/ 12 package org.jacoco.report; 13 14 import java.io.IOException; 15 import java.io.OutputStream; 16 17 /** 18 * Interface to emit multiple binary files. 19 */ 20 public interface IMultiReportOutput { 21 22 /** 23 * Creates a file at the given local path. The returned {@link OutputStream} 24 * has to be closed before the next document is created. 25 * 26 * @param path 27 * local path to the new document 28 * @return output for the content 29 * @throws IOException 30 * if the creation fails 31 */ createFile(String path)32 public OutputStream createFile(String path) throws IOException; 33 34 /** 35 * Closes the underlying resource container. 36 * 37 * @throws IOException 38 * if closing fails 39 */ close()40 public void close() throws IOException; 41 42 } 43