public interface BinaryExtractor
Modifier and Type | Interface and Description |
---|---|
static class |
BinaryExtractor.FileSelectors
Common selectors used for
extractBinary(Path, Predicate) . |
Modifier and Type | Method and Description |
---|---|
File |
extractBinary(Path binaryDestinationPath,
Predicate<org.apache.commons.compress.archivers.ArchiveEntry> binaryEntrySelector)
|
@Nonnull File extractBinary(Path binaryDestinationPath, Predicate<org.apache.commons.compress.archivers.ArchiveEntry> binaryEntrySelector) throws IOException
binaryDestinationPath
- Path to where the file shall be extracted tobinaryEntrySelector
- Selector for the file to extractFile
IOException
- When the extraction failedNoSuchElementException
- When no file in the archive was matched by the given Predicate
Copyright © 2019. All rights reserved.