public interface EntrySource
| Modifier and Type | Method and Description | 
|---|---|
| <T> T | apply(IoFunction<InputStream,T> reader)Apply the  IoFunctionto the file represented by this entry and return the result. | 
| void | extractToDisk(Path target)Extract this entry to the specified target. | 
| Path | getPath() | 
| void | read(IoConsumer<InputStream> reader)Read the file represented by this entry. | 
<T> T apply(@Nonnull IoFunction<InputStream,T> reader) throws IOException
IoFunction to the file represented by this entry and return the result.T - type of the return valuereader - consumes the InputStream for this entryreaderIOException - if an error was encountered while performing IOvoid extractToDisk(@Nonnull Path target) throws IOException
target - where this file will be copiedIOException - if an error was encountered while performing IOvoid read(@Nonnull IoConsumer<InputStream> reader) throws IOException
reader - consumes the InputStream for this entryIOException - if an error was encountered while performing IOCopyright © 2024 Atlassian. All rights reserved.