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

global.namespace.archive.io.api.ArchiveEntrySource 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 global.namespace.fun.io.api.Source;

/**
 * An abstraction for reading the content of an underlying archive entry.
 *
 * @author Christian Schlichtherle
 */
public abstract class ArchiveEntrySource extends ArchiveEntry implements Source {

    /** Copies all data of the underlying archive entry in this archive file to the given archive entry sink. */
    public abstract void copyTo(ArchiveEntrySink sink) throws Exception;

    @Override
    public boolean canEqual(Object that) { return that instanceof ArchiveEntrySource; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy