| 1 |
// Copyright 2001, FreeHEP. |
| 2 |
package org.freehep.util.io; |
| 3 |
|
| 4 |
import java.io.IOException; |
| 5 |
|
| 6 |
/** |
| 7 |
* The FinishableOutputStream allows a generic way of calling finish on an |
| 8 |
* output stream without closing it. |
| 9 |
* |
| 10 |
* @author Mark Donszelmann |
| 11 |
* @version $Id: FinishableOutputStream.java 8584 2006-08-10 23:06:37Z duns $ |
| 12 |
*/ |
| 13 |
public interface FinishableOutputStream { |
| 14 |
|
| 15 |
/** |
| 16 |
* Finishes the current outputstream (compresses, flushes, caluclates CRC) |
| 17 |
* and writes whatever is left in the buffers, but does not close the |
| 18 |
* stream. |
| 19 |
* |
| 20 |
* @throws IOException if write fails |
| 21 |
*/ |
| 22 |
public void finish() throws IOException; |
| 23 |
} |