Class IconResource
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.icns.IconResource
-
final class IconResource extends java.lang.ObjectIconResource- Version:
- $Id: IconResource.java,v 1.0 23.11.11 13:35 haraldk Exp$
-
-
Constructor Summary
Constructors Modifier Constructor Description privateIconResource(long start, int type, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) intdepth()booleanequals(java.lang.Object other)inthashCode()(package private) booleanhasMask()(package private) booleanisCompressed()private booleanisEqual(IconResource other)(package private) booleanisForeignFormat()(package private) booleanisMaskType()(package private) booleanisTOC()(package private) booleanisUnknownType()(package private) static IconResourceread(long offset, javax.imageio.stream.ImageInputStream input)(package private) static IconResourceread(javax.imageio.stream.ImageInputStream input)(package private) java.awt.Dimensionsize()java.lang.StringtoString()(package private) static inttypeFromImage(java.awt.image.RenderedImage image, java.lang.String compression)private static inttypeFromWidthForeign(int width)private static inttypeFromWidthNative(int width)private voidvalidate(int type, int length)private voidvalidateLengthForType(int type, int length, int expectedLength)
-
-
-
Method Detail
-
read
static IconResource read(javax.imageio.stream.ImageInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
read
static IconResource read(long offset, javax.imageio.stream.ImageInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
validate
private void validate(int type, int length)
-
validateLengthForType
private void validateLengthForType(int type, int length, int expectedLength)
-
size
java.awt.Dimension size()
-
depth
int depth()
-
isUnknownType
boolean isUnknownType()
-
hasMask
boolean hasMask()
-
isMaskType
boolean isMaskType()
-
isCompressed
boolean isCompressed()
-
isForeignFormat
boolean isForeignFormat()
-
isTOC
boolean isTOC()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
isEqual
private boolean isEqual(IconResource other)
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
typeFromImage
static int typeFromImage(java.awt.image.RenderedImage image, java.lang.String compression)
-
typeFromWidthNative
private static int typeFromWidthNative(int width)
-
typeFromWidthForeign
private static int typeFromWidthForeign(int width)
-
-