Class IconResource
- java.lang.Object
-
- com.twelvemonkeys.imageio.plugins.icns.IconResource
-
final class IconResource extends java.lang.Object
IconResource- Version:
- $Id: IconResource.java,v 1.0 23.11.11 13:35 haraldk Exp$
-
-
Constructor Summary
Constructors Modifier Constructor Description private
IconResource(long start, int type, int length)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) int
depth()
boolean
equals(java.lang.Object other)
int
hashCode()
(package private) boolean
hasMask()
(package private) boolean
isCompressed()
private boolean
isEqual(IconResource other)
(package private) boolean
isForeignFormat()
(package private) boolean
isMaskType()
(package private) boolean
isTOC()
(package private) boolean
isUnknownType()
(package private) static IconResource
read(long offset, javax.imageio.stream.ImageInputStream input)
(package private) static IconResource
read(javax.imageio.stream.ImageInputStream input)
(package private) java.awt.Dimension
size()
java.lang.String
toString()
(package private) static int
typeFromImage(java.awt.image.RenderedImage image, java.lang.String compression)
private static int
typeFromWidthForeign(int width)
private static int
typeFromWidthNative(int width)
private void
validate(int type, int length)
private void
validateLengthForType(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:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equals
in classjava.lang.Object
-
isEqual
private boolean isEqual(IconResource other)
-
toString
public java.lang.String toString()
- Overrides:
toString
in 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)
-
-