Class ImageCacher.External

    • Field Detail

      • imageDir

        private java.lang.String imageDir
      • prefix

        private java.lang.String prefix
      • suffix

        private java.lang.String suffix
    • Constructor Detail

      • External

        public External​(java.lang.String imageDir,
                        java.lang.String prefix,
                        java.lang.String suffix)
    • Method Detail

      • getCacheableData

        java.lang.Object getCacheableData​(java.io.ByteArrayOutputStream os)
        Description copied from class: ImageCacher
        Returns an object which can be cached. Implementation must determine which information should actually be stored.
        Specified by:
        getCacheableData in class ImageCacher
        Parameters:
        os - the byte stream which is to be coerced
      • imagesMatch

        boolean imagesMatch​(java.lang.Object o1,
                            java.lang.Object o2)
                     throws SVGGraphics2DIOException
        Description copied from class: ImageCacher
        Determines if two images are equal. Interpretation of the objects referred to by o1 and o2 is entirely implementation-dependent.
        Specified by:
        imagesMatch in class ImageCacher
        Parameters:
        o1 - object referring to one image
        o2 - object referring to the other image
        Throws:
        SVGGraphics2DIOException