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

no.difi.asic.AsicReader Maven / Gradle / Ivy

Go to download

Generic implementation of ASiC-E archives in accordance with ETSI 102 918 v1.3.1.

The newest version!
package no.difi.asic;

import no.difi.commons.asic.jaxb.asic.AsicManifest;

import java.io.*;
import java.nio.file.Path;

public interface AsicReader extends Closeable {

    /**
     * Provides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.
     *
     * @return name of next entry in archive.
     * @throws IOException
     */
    String getNextFile() throws IOException;

    /**
     * Writes the contents of the current entry into a file
     *
     * @param file into which the contents should be written.
     * @throws IOException
     */
    void writeFile(File file) throws IOException;

    /**
     * Writes contents of current archive entry into a file.
     *
     * @param path into which the contents of current entry should be written.
     * @throws IOException
     */
    void writeFile(Path path) throws IOException;

    /**
     * Writes contents of current archive entry to the supplied output stream.
     *
     * @param outputStream into which data from current entry should be written.
     * @throws IOException
     */
    void writeFile(OutputStream outputStream) throws IOException;

    /**
     * Returns InputStream to read the content.
     *
     * @return Content
     */
    InputStream inputStream() throws IOException;

    AsicManifest getAsicManifest();
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy