Class EpubParser.ManifestItem

java.lang.Object
com.attribyte.parser.epub.EpubParser.ManifestItem
Enclosing class:
EpubParser

public static final class EpubParser.ManifestItem extends Object
A manifest item in the spine.
  • Field Details

    • id

      public final String id
      The id.
    • name

      public final String name
      The name.
    • mediaType

      public final String mediaType
      The media type.
  • Method Details

    • toString

      public String toString()
      Overrides:
      toString in class Object
    • document

      public org.jsoup.nodes.Document document() throws IOException
      Gets the parsed XHTML document for this item, if any.
      Returns:
      The document or null if not XHTML.
      Throws:
      IOException - on parse error.
    • bytes

      public byte[] bytes() throws IOException
      Gets the raw bytes for this item.
      Returns:
      The bytes.
      Throws:
      IOException
    • processByteStream

      public void processByteStream(Consumer<InputStream> processor) throws IOException
      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.