Package adams.core.io

Interface ArchiveManager

    • Method Detail

      • initialize

        String initialize​(PlaceholderFile output)
        Initializes the archive.
        Parameters:
        output - the file name for the archive
        Returns:
        null if successful, otherwise error message
      • add

        String add​(PlaceholderFile data,
                   String name)
        Adds the file to the archive.
        Parameters:
        data - the file to add
        name - the name for the file in the archive
        Returns:
        null if successful, otherwise error message
      • add

        String add​(InputStream data,
                   String name)
        Adds the data from the input stream to the archive. Caller needs to close input stream.
        Parameters:
        data - the data to add
        name - the name for the data in the archive
        Returns:
        null if successful, otherwise error message
      • add

        String add​(byte[] data,
                   String name)
        Adds the data to the archive.
        Parameters:
        data - the data to add
        name - the name for the data in the archive
        Returns:
        null if successful, otherwise error message
      • close

        String close()
        Finalizes the archive.
        Returns:
        null if successful, otherwise error message