org.freehep.util.io.FinishableOutputStream Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of freehep-io Show documentation
Show all versions of freehep-io Show documentation
FreeHEP extension to the java.io library
// 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