Interface MPackageReaderFactoryType
- All Known Implementing Classes:
MPackageReaders
public interface MPackageReaderFactoryType
A provider of readers for packages.
-
Method Summary
Modifier and TypeMethodDescriptionbyte[]extractManifest(Path file) Perform the minimum steps required to extract the bytes of the manifest from the given file.Open a package for reading.
-
Method Details
-
open
Open a package for reading.- Parameters:
file- The input file- Returns:
- A new package reader
- Throws:
MException- On errors
-
extractManifest
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
-