All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.freehep.util.io.FinishableOutputStream Maven / Gradle / Ivy

There is a newer version: 2.2.2
Show newest version
// Copyright 2001, FreeHEP.
package org.freehep.util.io;

import java.io.IOException;

/**
 * The FinishableOutputStream allows a generic way of calling finish on an
 * output stream without closing it.
 * 
 * @author Mark Donszelmann
 * @version $Id: src/main/java/org/freehep/util/io/FinishableOutputStream.java
 *          96b41b903496 2005/11/21 19:50:18 duns $
 */
public interface FinishableOutputStream {

	/**
	 * Finishes the current outputstream (compresses, flushes, caluclates CRC)
	 * and writes whatever is left in the buffers, but does not close the
	 * stream.
	 * 
	 * @throws IOException
	 *             if write fails
	 */
	public void finish() throws IOException;
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy