Class Catalog
java.lang.Object
com.twelvemonkeys.imageio.plugins.thumbsdb.Catalog
- All Implemented Interfaces:
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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal intfinal intfinal intfinal Stringfinal StringgetStreamName(int pIndex) final intiterator()static CatalogReads theCatalogentry from the given input stream.static Catalogread(InputStream pInput) Reads theCatalogentry from the given input stream.toString()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
read
Reads theCatalogentry 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
Reads theCatalogentry 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
-
getStreamName
-
getName
-
toString
-
iterator
- Specified by:
iteratorin interfaceIterable<Catalog.CatalogItem>
-