Class IconResource
java.lang.Object
com.twelvemonkeys.imageio.plugins.icns.IconResource
IconResource
- Version:
- $Id: IconResource.java,v 1.0 23.11.11 13:35 haraldk Exp$
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) intdepth()booleaninthashCode()(package private) booleanhasMask()(package private) booleanprivate booleanisEqual(IconResource other) (package private) boolean(package private) boolean(package private) booleanisTOC()(package private) boolean(package private) static IconResourceread(long offset, ImageInputStream input) (package private) static IconResourceread(ImageInputStream input) (package private) Dimensionsize()toString()(package private) static inttypeFromImage(RenderedImage image, 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)
-
Field Details
-
start
final long start -
type
final int type -
length
final int length
-
-
Constructor Details
-
IconResource
private IconResource(long start, int type, int length)
-
-
Method Details
-
read
- Throws:
IOException
-
read
- Throws:
IOException
-
validate
private void validate(int type, int length) -
validateLengthForType
private void validateLengthForType(int type, int length, int expectedLength) -
size
Dimension size() -
depth
int depth() -
isUnknownType
boolean isUnknownType() -
hasMask
boolean hasMask() -
isMaskType
boolean isMaskType() -
isCompressed
boolean isCompressed() -
isForeignFormat
boolean isForeignFormat() -
isTOC
boolean isTOC() -
hashCode
-
equals
-
isEqual
-
toString
-
typeFromImage
-
typeFromWidthNative
private static int typeFromWidthNative(int width) -
typeFromWidthForeign
private static int typeFromWidthForeign(int width)
-