Class AbstractImageIOEncoder
java.lang.Object
is.galia.codec.AbstractImageIOEncoder
- Direct Known Subclasses:
GIFEncoder
,JPEGEncoder
,PNGEncoder
,TIFFEncoder
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected abstract void
addMetadata
(IIOMetadataNode baseTree) Embeds metadata fromencode
into the given tree.void
close()
Should be called when the instance is no longer needed.protected abstract org.slf4j.Logger
protected IIOMetadata
getMetadata
(ImageWriteParam writeParam, RenderedImage image) protected abstract String[]
N.B.: This method returns a list of strings rather thanclasses
because some readers reside under the com.sun package, which is encapsulated in Java 9.void
void
-
Field Details
-
arena
-
iioWriter
-
encode
-
-
Constructor Details
-
AbstractImageIOEncoder
public AbstractImageIOEncoder()
-
-
Method Details
-
addMetadata
Embeds metadata from
encode
into the given tree.Writers for formats that don't support metadata may simply do nothing.
- Parameters:
baseTree
- Tree to embed the metadata into.- Throws:
IOException
-
close
public void close()Should be called when the instance is no longer needed. -
getLogger
protected abstract org.slf4j.Logger getLogger() -
getMetadata
protected IIOMetadata getMetadata(ImageWriteParam writeParam, RenderedImage image) throws IOException - Parameters:
writeParam
- Write parameters on which to base the metadata.image
- Image to apply the metadata to.- Returns:
- Image metadata with added metadata corresponding to any writer-specific operations applied.
- Throws:
IOException
-
getPreferredIIOImplementations
N.B.: This method returns a list of strings rather thanclasses
because some readers reside under the com.sun package, which is encapsulated in Java 9.- Returns:
- Plugins preferred by the application, in order of most to least preferred, or an empty array if there is no preference.
-
setArena
-
setEncode
-