public class EPubExtractor
extends java.lang.Object
| Constructor and Description |
|---|
EPubExtractor() |
| Modifier and Type | Method and Description |
|---|---|
byte[] |
extractImage(java.io.InputStream in,
java.lang.String href)
Extract the cover image with
href |
java.util.Map<java.lang.String,java.lang.String> |
extractMetadata(java.io.InputStream in)
Look for a .opf file in the zip archive and extract metadata out of it
return it as a Map
|
public EPubExtractor()
throws java.lang.Exception
java.lang.Exceptionpublic java.util.Map<java.lang.String,java.lang.String> extractMetadata(java.io.InputStream in)
throws java.lang.Exception
in - Inputstream of the filejava.lang.Exception - the exception occurred on extracting metadata.public byte[] extractImage(java.io.InputStream in,
java.lang.String href)
throws java.lang.Exception
hrefin - Inputstream of the ziphref - the location of the filejava.lang.Exception - the exception occurred on extracting image."Copyright © 2010 - 2018 Adobe Systems Incorporated. All Rights Reserved"