Package com.sksamuel.scrimage.nio
Interface ImageSource
-
- All Known Implementing Classes:
ByteArrayImageSource
,CachedImageSource
,FileImageSource
,InputStreamImageSource
public interface ImageSource
An ImageSource is a provider of bytes to the ImmutableImageLoader.
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static ImageSource
of(byte[] bytes)
static ImageSource
of(java.io.File file)
static ImageSource
of(java.io.InputStream is)
byte[]
read()
-
-
-
Method Detail
-
of
static ImageSource of(byte[] bytes)
-
of
static ImageSource of(java.io.File file)
-
of
static ImageSource of(java.io.InputStream is) throws java.io.IOException
- Throws:
java.io.IOException
-
read
byte[] read() throws java.io.IOException
- Throws:
java.io.IOException
-
-