Uses of Interface
com.atlassian.bitbucket.io.IoConsumer
-
Uses of IoConsumer in com.atlassian.bitbucket.migration
Modifier and TypeMethodDescriptionstatic IoConsumer<SequentialArchive>
ExportSection.emptyArchive()
Returns a consumer forSequentialArchive
that adds no entries to the archive.static IoConsumer<OutputStream>
ExportSection.emptyEntry()
Returns a consumer forOutputStream
that does not write any data.Modifier and TypeMethodDescriptionvoid
ExportSection.addEntriesAsArchive
(Path entryName, IoConsumer<SequentialArchive> writer, boolean compress) Adds entries packaged as an archive to the export archivevoid
ExportSection.addEntry
(Path entryName, IoConsumer<OutputStream> writer, boolean compress) Creates a file with the givenentryName
under thissection
of the export archive, then consumes theOutputStream
it obtains from the file, using the givenConsumer
void
SequentialArchive.addEntry
(Path logicalPathInBundle, IoConsumer<OutputStream> outputStream) Add an entry to an archive.default void
ArchiveSource.read
(IoConsumer<EntrySource> reader) Filter and read each file in the archive.void
ArchiveSource.read
(IoConsumer<EntrySource> reader, Predicate<String> filter) Filter and read each file in the archive.void
EntrySource.read
(IoConsumer<InputStream> reader) Read the file represented by this entry.