java.lang.Object
com.twelvemonkeys.imageio.plugins.thumbsdb.Catalog
All Implemented Interfaces:
Iterable<Catalog.CatalogItem>

public final class Catalog extends Object implements Iterable<Catalog.CatalogItem>
Represents a Catalog structure, typically found in a CompoundDocument.
Version:
$Id: Catalog.java,v 1.0 01.feb.2007 17:19:59 haku Exp$
Author:
Harald Kuhr, last modified by $Author: haku$
See Also:
  • Method Details

    • read

      public static Catalog read(InputStream pInput) throws IOException
      Reads the Catalog entry from the given input stream.
      Parameters:
      pInput - the input stream
      Returns:
      a new Catalog
      Throws:
      IOException - if an I/O exception occurs during read
    • read

      public static Catalog read(DataInput pDataInput) throws IOException
      Reads the Catalog entry from the given input stream.

      The data is assumed to be in little endian byte order.

      Parameters:
      pDataInput - the input stream
      Returns:
      a new Catalog
      Throws:
      IOException - if an I/O exception occurs during read
    • getThumbnailCount

      public final int getThumbnailCount()
    • getMaxThumbnailWidth

      public final int getMaxThumbnailWidth()
    • getMaxThumbnailHeight

      public final int getMaxThumbnailHeight()
    • getIndex

      public final int getIndex(String pName)
    • getStreamName

      public final String getStreamName(int pIndex)
    • getName

      public final String getName(String pStreamName)
    • toString

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

      public Iterator<Catalog.CatalogItem> iterator()
      Specified by:
      iterator in interface Iterable<Catalog.CatalogItem>