Interface MPackageWriterFactoryType
- All Known Implementing Classes:
MPackageWriters
public interface MPackageWriterFactoryType
A provider of writers for packages.
-
Method Summary
Modifier and TypeMethodDescriptioncreate(Path file, Path fileTmp, MPackageDeclaration packageV) Start writing a new package.
-
Method Details
-
create
Start writing a new package. When the package writer is closed, validation will be performed and, on success, the output file will be atomically renamed from the temporary file to the output file, replacing any existing file.- Parameters:
file- The output filefileTmp- The temporary output filepackageV- The package declaration- Returns:
- A new package writer
- Throws:
MException- On errors
-