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$
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
static final class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Catalog.CatalogHeader
private final Catalog.CatalogItem[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal int
(package private) final Catalog.CatalogItem
getItem
(int pIndex) (package private) final Catalog.CatalogItem
(package private) final int
getItemId
(int pIndex) final int
final int
(package private) final String
getName
(int pItemId) final String
final String
getStreamName
(int pIndex) final int
iterator()
static Catalog
Reads theCatalog
entry from the given input stream.static Catalog
read
(InputStream pInput) Reads theCatalog
entry from the given input stream.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Field Details
-
header
-
items
-
-
Constructor Details
-
Catalog
Catalog(Catalog.CatalogHeader pHeader, Catalog.CatalogItem[] pItems)
-
-
Method Details
-
read
Reads theCatalog
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
Reads theCatalog
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() -
getItem
-
getItem
-
getItemId
final int getItemId(int pIndex) -
getIndex
-
getStreamName
-
getName
-
getName
-
toString
-
iterator
- Specified by:
iterator
in interfaceIterable<Catalog.CatalogItem>
-