Interface SequentialArchive

All Superinterfaces:
AutoCloseable, Closeable

public interface SequentialArchive extends Closeable
Since:
5.13
  • Method Details

    • addEntry

      void addEntry(@Nonnull Path logicalPathInBundle, @Nonnull IoConsumer<OutputStream> outputStream) throws IOException
      Add an entry to an archive.
      Parameters:
      logicalPathInBundle - where in the archive this entry should be written
      outputStream - used to write the contents of the entry
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.13
    • addPathFromDisk

      void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter, int attempts) throws IOException
      Add an entry to an archive.
      Parameters:
      destinationInBundle - where in the archive this entry should be written
      sourceOnDisk - source for entry data
      filter - filter files from being written to archive
      attempts - the number of times to retry this operation in the case of failure
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.13
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter) throws IOException
      Add an entry to an archive.
      Parameters:
      destinationInBundle - where in the archive this entry should be written
      sourceOnDisk - source for entry data
      filter - filter files from being written to archive
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.14
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk) throws IOException
      Add an entry to an archive.
      Parameters:
      destinationInBundle - where in the archive this entry should be written
      sourceOnDisk - source for entry data
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.14
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk, int attempts) throws IOException
      Add an entry to an archive.
      Parameters:
      destinationInBundle - where in the archive this entry should be written
      sourceOnDisk - source for entry data
      attempts - the number of times to retry this operation in the case of failure
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.14
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path sourceOnDisk) throws IOException
      Add an entry to an archive.
      Parameters:
      sourceOnDisk - source for entry data
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.13
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path sourceOnDisk, int attempts) throws IOException
      Add an entry to an archive.
      Parameters:
      sourceOnDisk - source for entry data
      attempts - the number of times to retry this operation in the case of failure
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.14
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter, int attempts) throws IOException
      Add an entry to an archive.
      Parameters:
      sourceOnDisk - source for entry data
      filter - filter files from being written to archive
      attempts - the number of times to retry this operation in the case of failure
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.14
    • addPathFromDisk

      default void addPathFromDisk(@Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter) throws IOException
      Add an entry to an archive.
      Parameters:
      sourceOnDisk - source for entry data
      filter - filter files from being written to archive
      Throws:
      IOException - if an error was encountered while performing IO
      Since:
      5.13