setOpfResource() public method

public setOpfResource ( Resource opfResource ) : void
opfResource Resource
return void
Exemplo n.º 1
0
 /// <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;
 }