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) int
depth()
boolean
int
hashCode()
(package private) boolean
hasMask()
(package private) boolean
private boolean
isEqual
(IconResource other) (package private) boolean
(package private) boolean
(package private) boolean
isTOC()
(package private) boolean
(package private) static IconResource
read
(long offset, ImageInputStream input) (package private) static IconResource
read
(ImageInputStream input) (package private) Dimension
size()
toString()
(package private) static int
typeFromImage
(RenderedImage image, 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)
-
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
public int hashCode() -
equals
-
isEqual
-
toString
-
typeFromImage
-
typeFromWidthNative
private static int typeFromWidthNative(int width) -
typeFromWidthForeign
private static int typeFromWidthForeign(int width)
-