Class ZipArchiveExporter
- java.lang.Object
-
- org.projectnessie.versioned.transfer.files.ZipArchiveExporter
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ExportFileSupplier
@Immutable public abstract class ZipArchiveExporter extends java.lang.Object implements ExportFileSupplier
Nessie exporter that creates a ZIP file.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceZipArchiveExporter.Builder
-
Constructor Summary
Constructors Constructor Description ZipArchiveExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ZipArchiveExporter.Builderbuilder()voidclose()java.nio.file.PathgetTargetPath()java.io.OutputStreamnewFileOutput(java.lang.String fileName)voidpreValidate()
-
-
-
Method Detail
-
builder
public static ZipArchiveExporter.Builder builder()
-
preValidate
public void preValidate()
- Specified by:
preValidatein interfaceExportFileSupplier
-
getTargetPath
@Nonnull public java.nio.file.Path getTargetPath()
- Specified by:
getTargetPathin interfaceExportFileSupplier
-
newFileOutput
@Nonnull public java.io.OutputStream newFileOutput(@Nonnull java.lang.String fileName) throws java.io.IOException- Specified by:
newFileOutputin interfaceExportFileSupplier- Throws:
java.io.IOException
-
close
public void close() throws java.lang.Exception- Specified by:
closein interfacejava.lang.AutoCloseable- Throws:
java.lang.Exception
-
-