Package com.io7m.montarre.api.io

# Interface MPackageWriterFactoryType

All Known Implementing Classes:
  `MPackageWriters`

public interface MPackageWriterFactoryType
A provider of writers for packages.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `MPackageWriterType`
  `create(Path file, Path fileTmp, MPackageDeclaration packageV)`
  Start writing a new package.

- ## Method Details

  - ### create

    MPackageWriterType create(Path file, Path fileTmp, MPackageDeclaration packageV) throws MException
    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 file
      `fileTmp` - The temporary output file
      `packageV` - The package declaration
    Returns:
      A new package writer
    Throws:
      `MException` - On errors