Class ImageMetadata


  • public class ImageMetadata
    extends java.lang.Object
    • Constructor Detail

      • ImageMetadata

        public ImageMetadata​(Directory[] directories)
    • Method Detail

      • load

        public static ImageMetadata load​(ImageSource source)
                                  throws java.io.IOException
        Throws:
        java.io.IOException
      • fromPath

        public static ImageMetadata fromPath​(java.nio.file.Path path)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • fromFile

        public static ImageMetadata fromFile​(java.io.File file)
                                      throws java.io.IOException
        Throws:
        java.io.IOException
      • fromResource

        public static ImageMetadata fromResource​(java.lang.String resource)
                                          throws java.io.IOException
        Throws:
        java.io.IOException
      • fromStream

        public static ImageMetadata fromStream​(java.io.InputStream in)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • fromBytes

        public static ImageMetadata fromBytes​(byte[] bytes)
                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • fromMetadata

        public static ImageMetadata fromMetadata​(com.drew.metadata.Metadata metadata)
      • getDirectories

        public Directory[] getDirectories()
      • 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
      • tagsBy

        public Tag[] tagsBy​(java.util.function.Predicate<Tag> f)
      • tags

        public Tag[] tags()
      • getOrientation

        public java.util.Optional<Orientation> getOrientation()