Class SimpleContext

  • All Implemented Interfaces:
    Context

    public class SimpleContext
    extends Object
    implements Context
    Simple context that remembers all metadata and thumbnail images found.
    • Constructor Detail

      • SimpleContext

        public SimpleContext()
    • Method Detail

      • getMetadata

        public InputStream[] getMetadata()
        Return all metadata found, as an array.
        Returns:
        metadata or null
      • getThumbnails

        public BufferedImage[] getThumbnails()
        Return all images found, as an array.
        Returns:
        images or null
      • getExceptions

        public ProcessorException[] getExceptions()
        Return all exceptions found during processing.
        Returns:
        exceptions or null
      • addException

        public void addException​(ProcessorException e)
        Add an exception that occurred while processing an asset.
        Specified by:
        addException in interface Context
        Parameters:
        e - exception to add
      • addMetadata

        public void addMetadata​(InputStream meta)
        Add metadata.
        Specified by:
        addMetadata in interface Context
        Parameters:
        meta - metadata
      • addThumbnail

        public void addThumbnail​(BufferedImage image)
        Add thumbnail image.
        Specified by:
        addThumbnail in interface Context
        Parameters:
        image - buffered image