Class IconResource


  • final class IconResource
    extends java.lang.Object
    IconResource
    Version:
    $Id: IconResource.java,v 1.0 23.11.11 13:35 haraldk Exp$
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) int length  
      (package private) long start  
      (package private) int type  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private IconResource​(long start, int type, int length)  
    • Field Detail

      • start

        final long start
      • type

        final int type
      • length

        final int length
    • Constructor Detail

      • IconResource

        private IconResource​(long start,
                             int type,
                             int length)
    • 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 class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.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)