Class IconResource

java.lang.Object
com.twelvemonkeys.imageio.plugins.icns.IconResource

final class IconResource extends Object
IconResource
Version:
$Id: IconResource.java,v 1.0 23.11.11 13:35 haraldk Exp$
  • 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

      static IconResource read(ImageInputStream input) throws IOException
      Throws:
      IOException
    • read

      static IconResource read(long offset, ImageInputStream input) throws IOException
      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()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • isEqual

      private boolean isEqual(IconResource other)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • typeFromImage

      static int typeFromImage(RenderedImage image, String compression)
    • typeFromWidthNative

      private static int typeFromWidthNative(int width)
    • typeFromWidthForeign

      private static int typeFromWidthForeign(int width)