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 voidaddMetadata(IIOMetadataNode baseTree) Embeds metadata fromencodeinto the given tree.voidclose()Should be called when the instance is no longer needed.protected abstract org.slf4j.Loggerprotected IIOMetadatagetMetadata(ImageWriteParam writeParam, RenderedImage image) protected abstract String[]N.B.: This method returns a list of strings rather thanclassesbecause some readers reside under the com.sun package, which is encapsulated in Java 9.voidvoid
-
Field Details
-
arena
-
iioWriter
-
encode
-
-
Constructor Details
-
AbstractImageIOEncoder
public AbstractImageIOEncoder()
-
-
Method Details
-
addMetadata
Embeds metadata from
encodeinto 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 thanclassesbecause 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
-