Package com.attribyte.parser.epub
Class EpubParser.ManifestItem
java.lang.Object
com.attribyte.parser.epub.EpubParser.ManifestItem
- Enclosing class:
EpubParser
A manifest item in the spine.
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionbyte[]bytes()Gets the raw bytes for this item.org.jsoup.nodes.Documentdocument()Gets the parsed XHTML document for this item, if any.voidprocessByteStream(Consumer<InputStream> processor) Externally process the bytes for this item supplied as a stream.longsize()Gets the size of this item in bytes.toString()
-
Field Details
-
id
The id. -
name
The name. -
mediaType
The media type.
-
-
Method Details
-
toString
-
document
Gets the parsed XHTML document for this item, if any.- Returns:
- The document or
nullif not XHTML. - Throws:
IOException- on parse error.
-
bytes
Gets the raw bytes for this item.- Returns:
- The bytes.
- Throws:
IOException
-
processByteStream
Externally process the bytes for this item supplied as a stream.- Parameters:
processor- The processor function.- Throws:
IOException- On error.
-
size
public long size()Gets the size of this item in bytes.- Returns:
- The size.
-