Class Catalog
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.thumbsdb.Catalog
-
- All Implemented Interfaces:
java.lang.Iterable<Catalog.CatalogItem>
public final class Catalog extends java.lang.Object implements java.lang.Iterable<Catalog.CatalogItem>
Represents aCatalog
structure, typically found in aCompoundDocument
.- 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:
- PeteDavis.NET
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Catalog.CatalogItem
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getIndex(java.lang.String pName)
int
getMaxThumbnailHeight()
int
getMaxThumbnailWidth()
java.lang.String
getName(java.lang.String pStreamName)
java.lang.String
getStreamName(int pIndex)
int
getThumbnailCount()
java.util.Iterator<Catalog.CatalogItem>
iterator()
static Catalog
read(java.io.DataInput pDataInput)
Reads theCatalog
entry from the given input stream.static Catalog
read(java.io.InputStream pInput)
Reads theCatalog
entry from the given input stream.java.lang.String
toString()
-
-
-
Method Detail
-
read
public static Catalog read(java.io.InputStream pInput) throws java.io.IOException
Reads theCatalog
entry from the given input stream.- Parameters:
pInput
- the input stream- Returns:
- a new
Catalog
- Throws:
java.io.IOException
- if an I/O exception occurs during read
-
read
public static Catalog read(java.io.DataInput pDataInput) throws java.io.IOException
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:
java.io.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(java.lang.String pName)
-
getStreamName
public final java.lang.String getStreamName(int pIndex)
-
getName
public final java.lang.String getName(java.lang.String pStreamName)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
iterator
public java.util.Iterator<Catalog.CatalogItem> iterator()
- Specified by:
iterator
in interfacejava.lang.Iterable<Catalog.CatalogItem>
-
-