// 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: FinishableOutputStream.java,v 1.3 2008-05-04 12:20:54 murkle * Exp $ */ 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; }