Class MPackageReaders
java.lang.Object
com.io7m.montarre.io.MPackageReaders
- All Implemented Interfaces:
MPackageReaderFactoryType
Package readers.
-
Constructor Summary
ConstructorsConstructorDescriptionPackage readers.Package writers. -
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.
-
Constructor Details
-
MPackageReaders
public MPackageReaders()Package readers. -
MPackageReaders
Package writers.- Parameters:
inParsers- The package declaration parsers
-
-
Method Details
-
open
Description copied from interface:MPackageReaderFactoryTypeOpen a package for reading.- Specified by:
openin interfaceMPackageReaderFactoryType- Parameters:
file- The input file- Returns:
- A new package reader
- Throws:
MException- On errors
-
extractManifest
Description copied from interface:MPackageReaderFactoryTypePerform 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.- Specified by:
extractManifestin interfaceMPackageReaderFactoryType- Parameters:
file- The file- Returns:
- The manifest bytes
- Throws:
MException- On errors
-