Package com.io7m.montarre.nativepack.internal

# Class MNArchives

java.lang.Object
com.io7m.montarre.nativepack.internal.MNArchives

public final class MNArchives extends Object
Functions to create archives.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `static Path`
  `packTar(Path inputDirectory, Path outputFile, Predicate<String> isExecutable, MShortName shortName)`
  Pack the given directory into an archive.
  `static Path`
  `packZip(Path inputDirectory, Path outputFile, MShortName shortName)`
  Pack the given directory into an archive.

  ### Methods inherited from class java.lang.Object

  `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Method Details

  - ### packTar

    public static Path packTar(Path inputDirectory, Path outputFile, Predicate<String> isExecutable, MShortName shortName) throws IOException, com.io7m.jmulticlose.core.ClosingResourceFailedException
    Pack the given directory into an archive.
    Parameters:
      `inputDirectory` - The input directory
      `outputFile` - The output file
      `isExecutable` - A function that determines if an entry name is executable
      `shortName` - The short name
    Returns:
      The output file
    Throws:
      `IOException` - On errors
      `com.io7m.jmulticlose.core.ClosingResourceFailedException` - On errors

  - ### packZip

    public static Path packZip(Path inputDirectory, Path outputFile, MShortName shortName) throws IOException, com.io7m.jmulticlose.core.ClosingResourceFailedException
    Pack the given directory into an archive.
    Parameters:
      `inputDirectory` - The input directory
      `outputFile` - The output file
      `shortName` - The short name
    Returns:
      The output file
    Throws:
      `IOException` - On errors
      `com.io7m.jmulticlose.core.ClosingResourceFailedException` - On errors