public class GenerationWriter
extends java.lang.Object
Constructor and Description |
---|
GenerationWriter(int id) |
GenerationWriter(java.nio.file.Path path) |
Modifier and Type | Method and Description |
---|---|
void |
addPart(PartGeneration part) |
static void |
deleteGenerationFile(int id) |
static void |
deleteGenerationFiles() |
static void |
deleteOtherGenerations(java.util.List<DataProtectGeneration> generations) |
DataProtectGeneration |
read() |
static java.util.List<DataProtectGeneration> |
readGenerationFiles() |
void |
updatePart(PartGeneration part) |
void |
write(DataProtectGeneration dpg) |
public GenerationWriter(int id)
public GenerationWriter(java.nio.file.Path path)
public void write(DataProtectGeneration dpg)
public DataProtectGeneration read() throws java.io.IOException
java.io.IOException
public void addPart(PartGeneration part)
public void updatePart(PartGeneration part)
public static java.util.List<DataProtectGeneration> readGenerationFiles()
public static void deleteGenerationFiles()
public static void deleteOtherGenerations(java.util.List<DataProtectGeneration> generations)
public static void deleteGenerationFile(int id)
Copyright © 2021. All Rights Reserved.