Package com.io7m.montarre.api.io

# Interface MPackageWriterType

All Superinterfaces:
  `AutoCloseable`

All Known Implementing Classes:
  `MPackageWriter`

public interface MPackageWriterType extends AutoCloseable
A package being written.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `void`
  `addFile(MFileName name, Path file)`
  Add a file to the package.
  `void`
  `close()`
  `void`
  `packFrom(Path inputDirectory)`
  Pack all files in the given directory hierarchy.

- ## Method Details

  - ### addFile

    void addFile(MFileName name, Path file) throws MException
    Add a file to the package.
    Parameters:
      `name` - The file name
      `file` - The file
    Throws:
      `MException` - On errors

  - ### close

    void close() throws MException
    Specified by:
      `close` in interface `AutoCloseable`
    Throws:
      `MException`

  - ### packFrom

    void packFrom(Path inputDirectory) throws MException
    Pack all files in the given directory hierarchy.
    Parameters:
      `inputDirectory` - The input directory
    Throws:
      `MException`