public interface ArchiveSource
| Modifier and Type | Method and Description | 
|---|---|
| default void | extractToDisk(Path target)Extract this contents of this archive to the specified target. | 
| void | extractToDisk(Path target,
             Predicate<String> filter)Filter and extract this contents of this archive to the specified target. | 
| Path | getPath()Get the path of this archive source. | 
| default void | read(IoConsumer<EntrySource> reader)Filter and read each file in the archive. | 
| void | read(IoConsumer<EntrySource> reader,
    Predicate<String> filter)Filter and read each file in the archive. | 
void extractToDisk(@Nonnull Path target, @Nonnull Predicate<String> filter) throws IOException
target - path on disk where files will be extractedfilter - predicate applied to each file before extraction. If the predicate returns false the file
               will not be extractedIOException - if an error was encountered while performing IOdefault void extractToDisk(@Nonnull Path target) throws IOException
target - path on disk where files will be extractedIOException - if an error was encountered while performing IO@Nonnull Path getPath()
default void read(@Nonnull IoConsumer<EntrySource> reader) throws IOException
reader - used to read the contents of each fileIOException - if an error was encountered while performing IOvoid read(@Nonnull IoConsumer<EntrySource> reader, @Nonnull Predicate<String> filter) throws IOException
reader - used to read the contents of each filefilter - predicate applied to each file before reading. If the predicate returns false the file
               will not be extractedIOException - if an error was encountered while performing IOCopyright © 2024 Atlassian. All rights reserved.