this(new ZipContainerSource(file));
}
public Publication(ContainerSource containerSource) throws Exception {
this.containerSource = containerSource;
DataSource cont = containerSource.getDataSource("META-INF/container.xml");
if (cont == null)
throw new IOException("Not an EPUB file: META-INF/container.xml missing");
String opfName = processOCF(cont.getInputStream());
opf = new OPFResource(this, opfName);
resourcesByName.put(opfName, opf);
opf.load(containerSource, opfName);
Iterator entries = containerSource.getResourceList();
while (entries.hasNext()) {