public interface SequentialArchive extends Closeable
Modifier and Type | Method and Description |
---|---|
void |
addEntry(Path logicalPathInBundle,
IoConsumer<OutputStream> outputStream)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path sourceOnDisk)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path sourceOnDisk,
int attempts)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path destinationInBundle,
Path sourceOnDisk)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path destinationInBundle,
Path sourceOnDisk,
int attempts)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path sourceOnDisk,
PathMatcher filter)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path sourceOnDisk,
PathMatcher filter,
int attempts)
Add an entry to an archive.
|
default void |
addPathFromDisk(Path destinationInBundle,
Path sourceOnDisk,
PathMatcher filter)
Add an entry to an archive.
|
void |
addPathFromDisk(Path destinationInBundle,
Path sourceOnDisk,
PathMatcher filter,
int attempts)
Add an entry to an archive.
|
void addEntry(@Nonnull Path logicalPathInBundle, @Nonnull IoConsumer<OutputStream> outputStream) throws IOException
logicalPathInBundle
- where in the archive this entry should be writtenoutputStream
- used to write the contents of the entryIOException
- if an error was encountered while performing IOvoid addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter, int attempts) throws IOException
destinationInBundle
- where in the archive this entry should be writtensourceOnDisk
- source for entry datafilter
- filter files from being written to archiveattempts
- the number of times to retry this operation in the case of failureIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter) throws IOException
destinationInBundle
- where in the archive this entry should be writtensourceOnDisk
- source for entry datafilter
- filter files from being written to archiveIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk) throws IOException
destinationInBundle
- where in the archive this entry should be writtensourceOnDisk
- source for entry dataIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path destinationInBundle, @Nonnull Path sourceOnDisk, int attempts) throws IOException
destinationInBundle
- where in the archive this entry should be writtensourceOnDisk
- source for entry dataattempts
- the number of times to retry this operation in the case of failureIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path sourceOnDisk) throws IOException
sourceOnDisk
- source for entry dataIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path sourceOnDisk, int attempts) throws IOException
sourceOnDisk
- source for entry dataattempts
- the number of times to retry this operation in the case of failureIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter, int attempts) throws IOException
sourceOnDisk
- source for entry datafilter
- filter files from being written to archiveattempts
- the number of times to retry this operation in the case of failureIOException
- if an error was encountered while performing IOdefault void addPathFromDisk(@Nonnull Path sourceOnDisk, @Nonnull PathMatcher filter) throws IOException
sourceOnDisk
- source for entry datafilter
- filter files from being written to archiveIOException
- if an error was encountered while performing IOCopyright © 2024 Atlassian. All rights reserved.