public class ImageMetadata
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static ImageMetadata |
empty |
Constructor and Description |
---|
ImageMetadata(Directory[] directories) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
static ImageMetadata |
fromBytes(byte[] bytes) |
static ImageMetadata |
fromFile(java.io.File file) |
static ImageMetadata |
fromImage(ImmutableImage image) |
static ImageMetadata |
fromMetadata(com.drew.metadata.Metadata metadata) |
static ImageMetadata |
fromPath(java.nio.file.Path path) |
static ImageMetadata |
fromResource(java.lang.String resource) |
static ImageMetadata |
fromStream(java.io.InputStream in) |
Directory[] |
getDirectories() |
java.util.Optional<Orientation> |
getOrientation() |
int |
hashCode() |
static ImageMetadata |
load(ImageSource source) |
Tag[] |
tags() |
Tag[] |
tagsBy(java.util.function.Predicate<Tag> f) |
public static ImageMetadata empty
public ImageMetadata(Directory[] directories)
public static ImageMetadata load(ImageSource source) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromImage(ImmutableImage image) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromPath(java.nio.file.Path path) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromFile(java.io.File file) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromResource(java.lang.String resource) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromStream(java.io.InputStream in) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromBytes(byte[] bytes) throws java.io.IOException
java.io.IOException
public static ImageMetadata fromMetadata(com.drew.metadata.Metadata metadata)
public Directory[] getDirectories()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Tag[] tags()
public java.util.Optional<Orientation> getOrientation()