Package com.sksamuel.scrimage.metadata
Class ImageMetadata
- java.lang.Object
-
- com.sksamuel.scrimage.metadata.ImageMetadata
-
public class ImageMetadata extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static ImageMetadata
empty
-
Constructor Summary
Constructors Constructor Description ImageMetadata(Directory[] directories)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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)
-
-
-
Field Detail
-
empty
public static ImageMetadata empty
-
-
Constructor Detail
-
ImageMetadata
public ImageMetadata(Directory[] directories)
-
-
Method Detail
-
load
public static ImageMetadata load(ImageSource source) throws java.io.IOException
- Throws:
java.io.IOException
-
fromImage
public static ImageMetadata fromImage(ImmutableImage image) 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 classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
tags
public Tag[] tags()
-
getOrientation
public java.util.Optional<Orientation> getOrientation()
-
-