Class FileExporter
- java.lang.Object
-
- org.projectnessie.versioned.transfer.files.FileExporter
-
- All Implemented Interfaces:
java.lang.AutoCloseable,ExportFileSupplier
@Immutable public abstract class FileExporter extends java.lang.Object implements ExportFileSupplier
Nessie exporter that writes to individual files into an empty target directory.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceFileExporter.Builder
-
Constructor Summary
Constructors Constructor Description FileExporter()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FileExporter.Builderbuilder()voidclose()java.nio.file.PathgetTargetPath()java.io.OutputStreamnewFileOutput(java.lang.String fileName)voidpreValidate()
-
-
-
Method Detail
-
builder
public static FileExporter.Builder builder()
-
getTargetPath
@Nonnull public java.nio.file.Path getTargetPath()
- Specified by:
getTargetPathin interfaceExportFileSupplier
-
preValidate
public void preValidate() throws java.io.IOException- Specified by:
preValidatein interfaceExportFileSupplier- Throws:
java.io.IOException
-
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()
- Specified by:
closein interfacejava.lang.AutoCloseable
-
-