Package no.difi.asic

Interface AsicReader

All Superinterfaces:
AutoCloseable, Closeable
All Known Implementing Classes:
CmsEncryptedAsicReader

public interface AsicReader extends Closeable
  • Method Summary

    Modifier and Type
    Method
    Description
    no.difi.commons.asic.jaxb.asic.AsicManifest
     
    Provides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.
    Returns InputStream to read the content.
    void
    Writes the contents of the current entry into a file
    void
    writeFile(OutputStream outputStream)
    Writes contents of current archive entry to the supplied output stream.
    void
    Writes contents of current archive entry into a file.

    Methods inherited from interface java.io.Closeable

    close
  • Method Details

    • getNextFile

      String getNextFile() throws IOException
      Provides the name of the next entry in the ASiC archive and positions the inputstream at the beginning of the data.
      Returns:
      name of next entry in archive.
      Throws:
      IOException
    • writeFile

      void writeFile(File file) throws IOException
      Writes the contents of the current entry into a file
      Parameters:
      file - into which the contents should be written.
      Throws:
      IOException
    • writeFile

      void writeFile(Path path) throws IOException
      Writes contents of current archive entry into a file.
      Parameters:
      path - into which the contents of current entry should be written.
      Throws:
      IOException
    • writeFile

      void writeFile(OutputStream outputStream) throws IOException
      Writes contents of current archive entry to the supplied output stream.
      Parameters:
      outputStream - into which data from current entry should be written.
      Throws:
      IOException
    • inputStream

      InputStream inputStream() throws IOException
      Returns InputStream to read the content.
      Returns:
      Content
      Throws:
      IOException
    • getAsicManifest

      no.difi.commons.asic.jaxb.asic.AsicManifest getAsicManifest()