Class WebPChunkExif


  • public final class WebPChunkExif
    extends AbstractWebPChunk
    Exif (metadata) chunk.
    
      0                   1                   2                   3
      0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6 7 8 9 0 1
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     |                      ChunkHeader('EXIF')                      |
     |                                                               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     :                        Exif Metadata                          :
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     
    Since:
    1.0.0-alpha4
    See Also:
    Extended File Format#Metadata
    • Constructor Detail

      • WebPChunkExif

        public WebPChunkExif​(int type,
                             int size,
                             byte[] bytes)
                      throws ImagingException
        Create an Exif chunk.
        Parameters:
        type - chunk type.
        size - chunk size.
        bytes - chunk data.
        Throws:
        ImagingException - if the chunk data and the size provided do not match.
    • Method Detail

      • dump

        public void dump​(java.io.PrintWriter pw,
                         int offset)
                  throws ImagingException,
                         java.io.IOException
        Description copied from class: AbstractWebPChunk
        Print the chunk to the given stream.
        Overrides:
        dump in class AbstractWebPChunk
        Parameters:
        pw - a stream to write to.
        offset - chunk offset.
        Throws:
        ImagingException - if the image is invalid.
        java.io.IOException - if it fails to write to the given stream.