/// <summary> /// Read epub from inputstream /// </summary> /// <param name="zipInputStream">the inputstream from which to read the epub</param> /// <param name="encoding"></param> public Book readEpub(ZipInputStream zipInputStream, String encoding) { Book result = new Book(); Resources resources = readResources(zipInputStream, encoding); handleMimeType(result, resources); String packageResourceHref = getPackageResourceHref(resources); Resource packageResource = processPackageResource(packageResourceHref, result, resources); result.setOpfResource(packageResource); Resource ncxResource = processNcxResource(packageResource, result); result.setNcxResource(ncxResource); result = postProcessBook(result); return result; }