Debian Codegraph @

src/org/tukaani/xz/FinishableOutputStream.java

raw symbols SCIP
1 // SPDX-License-Identifier: 0BSD
2 // SPDX-FileCopyrightText: The XZ for Java authors and contributors
3 // SPDX-FileContributor: Lasse Collin <[email protected]>
4
5 package org.tukaani.xz;
6
7 import java.io.OutputStream;
8 import java.io.IOException;
9
10 /**
11 * Output stream that supports finishing without closing
12 * the underlying stream.
13 */
14 public abstract class FinishableOutputStream extends OutputStream {
15 /**
16 * Finish the stream without closing the underlying stream.
17 * No more data may be written to the stream after finishing.
18 * <p>
19 * The {@code finish} method of {@code FinishableOutputStream} does
20 * nothing. Subclasses should override it if they need finishing
21 * support, which is the case, for example, with compressors.
22 *
23 * @throws IOException
24 */
25 public void finish() throws IOException {}
26 }