Class ElementImageHelper.ImageInformation

  • Enclosing class:
    ElementImageHelper

    @OpenApiAll
    public static class ElementImageHelper.ImageInformation
    extends java.lang.Object
    Structure, which contains information of image: content, format and location.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private com.nomagic.utils.ZippedString mContent
      Content of image.
      private java.lang.String mFormat
      Format of image.
      private java.lang.String mLocation
      Format of image.
    • Constructor Summary

      Constructors 
      Constructor Description
      ImageInformation()
      Sets content, format and image to nulls.
      ImageInformation​(java.lang.String content, java.lang.String format)
      Initializes content, format of image.
      ImageInformation​(java.lang.String content, java.lang.String format, java.lang.String location)
      Initializes content, format and location of image.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.Object clone()  
      boolean equals​(java.lang.Object o)  
      java.lang.String getContent()  
      java.lang.String getFormat()  
      java.lang.String getLocation()  
      int hashCode()  
      void setContent​(java.lang.String content)
      Sets content of image.
      void setFormat​(java.lang.String format)
      Sets format of image.
      void setLocation​(java.lang.String location)
      Sets location of image.
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • mContent

        private com.nomagic.utils.ZippedString mContent
        Content of image.
      • mFormat

        private java.lang.String mFormat
        Format of image.
      • mLocation

        private java.lang.String mLocation
        Format of image.
    • Constructor Detail

      • ImageInformation

        public ImageInformation​(@CheckForNull
                                java.lang.String content,
                                @CheckForNull
                                java.lang.String format,
                                @CheckForNull
                                java.lang.String location)
        Initializes content, format and location of image.
        Parameters:
        content - content of image. Use Utilities.toString() to convert bytes to a string.
        format - format of image(like gif, png and etc).
        location - location of image.
        See Also:
        Utilities.toString(byte[])
      • ImageInformation

        public ImageInformation​(java.lang.String content,
                                java.lang.String format)
        Initializes content, format of image.
        Parameters:
        content - content of image. Use Utilities.toString() to convert bytes to a string.
        format - format of image(like gif, png and etc).
        See Also:
        Utilities.toString(byte[])
      • ImageInformation

        public ImageInformation()
        Sets content, format and image to nulls.
    • Method Detail

      • setContent

        public void setContent​(@CheckForNull
                               java.lang.String content)
        Sets content of image. Use Utilities.toString() to convert bytes to a string.
        Parameters:
        content - content of image.
        See Also:
        Utilities.toString(byte[])
      • getContent

        @CheckForNull
        public java.lang.String getContent()
        Returns:
        gets content of image.
      • setFormat

        public void setFormat​(@CheckForNull
                              java.lang.String format)
        Sets format of image.
        Parameters:
        format - format of image.
      • getFormat

        public java.lang.String getFormat()
        Returns:
        format of image.
      • setLocation

        public void setLocation​(@CheckForNull
                                java.lang.String location)
        Sets location of image.
        Parameters:
        location - location of image.
      • getLocation

        public java.lang.String getLocation()
        Returns:
        location of image.
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • clone

        protected java.lang.Object clone()
                                  throws java.lang.CloneNotSupportedException
        Overrides:
        clone in class java.lang.Object
        Throws:
        java.lang.CloneNotSupportedException