Package com.enonic.xp.icon

## Class Icon

- java.lang.Object
- - com.enonic.xp.icon.Icon

-     @PublicApi
      public final class Icon
      extends Object

- - ### Method Summary

    All Methods Static Methods Instance Methods Concrete Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `InputStream` | `asInputStream()` |
    `boolean` | `equals​(Object o)` |
    `static Icon` | `from​(byte[] iconData, String mimeType, Instant modifiedTime)` |
    `static Icon` | `from​(InputStream dataStream, String mimeType, Instant modifiedTime)` |
    `String` | `getMimeType()` |
    `Instant` | `getModifiedTime()` |
    `int` | `getSize()` |
    `int` | `hashCode()` |
    `byte[]` | `toByteArray()` |
    `String` | `toString()` |

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Method Detail

    - #### toByteArray

          public byte[] toByteArray()

    - #### asInputStream

          public InputStream asInputStream()

    - #### getMimeType

          public String getMimeType()

    - #### getSize

          public int getSize()

    - #### getModifiedTime

          public Instant getModifiedTime()

    - #### equals

          public boolean equals​(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

    - #### from

          public static Icon from​(byte[] iconData,
                                  String mimeType,
                                  Instant modifiedTime)

    - #### from

          public static Icon from​(InputStream dataStream,
                                  String mimeType,
                                  Instant modifiedTime)