public interface

SequentialArchive

implements Closeable
com.atlassian.bitbucket.migration.SequentialArchive

Summary

Public Methods
void addEntry(Path logicalPathInBundle, IoConsumer<OutputStream> outputStream)
Add an entry to an archive.
void addPathFromDisk(Path sourceOnDisk, PathMatcher filter)
Add an entry to an archive.
void addPathFromDisk(Path destinationInBundle, Path sourceOnDisk, PathMatcher filter)
Add an entry to an archive.
void addPathFromDisk(Path sourceOnDisk)
Add an entry to an archive.
void addPathFromDisk(Path sourceOnDisk, int attempts)
Add an entry to an archive.
void addPathFromDisk(Path destinationInBundle, Path sourceOnDisk, PathMatcher filter, int attempts)
Add an entry to an archive.
void addPathFromDisk(Path destinationInBundle, Path sourceOnDisk)
Add an entry to an archive.
void addPathFromDisk(Path destinationInBundle, Path sourceOnDisk, int attempts)
Add an entry to an archive.
void addPathFromDisk(Path sourceOnDisk, PathMatcher filter, int attempts)
Add an entry to an archive.
[Expand]
Inherited Methods
From interface java.io.Closeable
From interface java.lang.AutoCloseable

Public Methods

public void addEntry (Path logicalPathInBundle, IoConsumer<OutputStream> outputStream)

Add an entry to an archive.

Parameters
logicalPathInBundle where in the archive this entry should be written
outputStream used to write the contents of the entry
Throws
IOException
IOException

public void addPathFromDisk (Path sourceOnDisk, PathMatcher filter)

Add an entry to an archive.

Parameters
sourceOnDisk source for entry data
filter filter files from being written to archive
Throws
IOException
IOException

public void addPathFromDisk (Path destinationInBundle, Path sourceOnDisk, PathMatcher filter)

Add an entry to an archive.

Parameters
destinationInBundle where in the archive this entry should be written
sourceOnDisk source for entry data
filter filter files from being written to archive
Throws
IOException
IOException

public void addPathFromDisk (Path sourceOnDisk)

Add an entry to an archive.

Parameters
sourceOnDisk source for entry data
Throws
IOException
IOException

public void addPathFromDisk (Path sourceOnDisk, int attempts)

Add an entry to an archive.

Parameters
sourceOnDisk source for entry data
attempts the number of times to retry this operation in the case of failure
Throws
IOException
IOException

public void addPathFromDisk (Path destinationInBundle, Path sourceOnDisk, PathMatcher filter, int attempts)

Add an entry to an archive.

Parameters
destinationInBundle where in the archive this entry should be written
sourceOnDisk source for entry data
filter filter files from being written to archive
attempts the number of times to retry this operation in the case of failure
Throws
IOException
IOException

public void addPathFromDisk (Path destinationInBundle, Path sourceOnDisk)

Add an entry to an archive.

Parameters
destinationInBundle where in the archive this entry should be written
sourceOnDisk source for entry data
Throws
IOException
IOException

public void addPathFromDisk (Path destinationInBundle, Path sourceOnDisk, int attempts)

Add an entry to an archive.

Parameters
destinationInBundle where in the archive this entry should be written
sourceOnDisk source for entry data
attempts the number of times to retry this operation in the case of failure
Throws
IOException
IOException

public void addPathFromDisk (Path sourceOnDisk, PathMatcher filter, int attempts)

Add an entry to an archive.

Parameters
sourceOnDisk source for entry data
filter filter files from being written to archive
attempts the number of times to retry this operation in the case of failure
Throws
IOException
IOException