Class WebPChunkXml


  • public final class WebPChunkXml
    extends AbstractWebPChunk
    XML 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('XMP ')                      |
     |                                                               |
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     :                        XMP Metadata                           :
     +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+
     
    Since:
    1.0.0-alpha4
    See Also:
    Extended File Format#Metadata
    • Field Detail

      • xml

        private final java.lang.String xml
    • Constructor Detail

      • WebPChunkXml

        public WebPChunkXml​(int type,
                            int size,
                            byte[] bytes)
                     throws ImagingException
        Create a XML 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

      • getXml

        public java.lang.String getXml()
        Returns:
        the XML.