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

global.namespace.archive.io.api.ArchiveFileOutput Maven / Gradle / Ivy

There is a newer version: 0.10.0
Show newest version
/*
 * Copyright (C) 2013-2018 Schlichtherle IT Services.
 * All rights reserved. Use is subject to license terms.
 */
package global.namespace.archive.io.api;

import java.io.Closeable;

/**
 * An abstraction for writing archive entries to an archive file.
 *
 * @see ArchiveFileInput
 * @author Christian Schlichtherle
 */
public interface ArchiveFileOutput extends Closeable {

    /** Returns {@code true} if and only if this is a JAR file. */
    boolean isJar();

    /** Returns a sink for writing the archive entry with the given name. */
    ArchiveEntrySink sink(String name);
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy