Class WaczReader
java.lang.Object
org.netpreserve.jwarc.WaczReader
- All Implemented Interfaces:
Closeable, AutoCloseable
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
WaczReader
- Throws:
IOException
-
-
Method Details
-
close
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable- Throws:
IOException
-
metadata
Retrieves the metadata from the WACZ file, reading it from "datapackage.json". Caches the result.- Returns:
- a Map representing the metadata contained in "datapackage.json".
- Throws:
IOException- if the WACZ file does not contain "datapackage.json", if the file cannot be read, or if "datapackage.json" is not a valid JSON object.
-