com.atlassian.bitbucket.migration.EntrySource |
Class Overview
Provides access to a single file within an archive.
Summary
Public Methods |
<T>
T
|
apply(IoFunction<InputStream, T> reader)
Apply the IoFunction to the file represented by this entry and return the result.
|
void
|
extractToDisk(Path target)
Extract this entry to the specified target.
|
@Nonnull
Path
|
getPath()
|
void
|
read(IoConsumer<InputStream> reader)
Read the file represented by this entry.
|
Public Methods
public
T
apply
(IoFunction<InputStream, T> reader)
Apply the IoFunction
to the file represented by this entry and return the result.
Parameters
reader
| consumes the InputStream for this entry |
Returns
- the value returned by
reader
public
void
extractToDisk
(Path target)
Extract this entry to the specified target.
Parameters
target
| where this file will be copied
|
@Nonnull
public
Path
getPath
()
Returns
- location of this entry within the archive
public
void
read
(IoConsumer<InputStream> reader)
Read the file represented by this entry.
Parameters
reader
| consumes the InputStream for this entry
|