# Interface MPackageReaderFactoryType

All Known Implementing Classes:
  `MPackageReaders`

public interface MPackageReaderFactoryType
A provider of readers for packages.

- ## Method Summary

  Modifier and Type
  Method
  Description
  `byte[]`
  `extractManifest(Path file)`
  Perform the minimum steps required to extract the bytes of the manifest from the given file.
  `MPackageReaderType`
  `open(Path file)`
  Open a package for reading.

- ## Method Details

  - ### open

    MPackageReaderType open(Path file) throws MException
    Open a package for reading.
    Parameters:
      `file` - The input file
    Returns:
      A new package reader
    Throws:
      `MException` - On errors

  - ### extractManifest

    byte[] extractManifest(Path file) throws MException
    Perform the minimum steps required to extract the bytes of the manifest from the given file. This method is provided to assist with extracting data from damaged files and performs no validation.
    Parameters:
      `file` - The file
    Returns:
      The manifest bytes
    Throws:
      `MException` - On errors