Package 

Object WebpUtil


  • 
    public class WebpUtil
    
                        

    This class contains utility method in order to manage the WebP format metadata

    • Field Summary

      Fields 
      Modifier and Type Field Description
      public final static WebpUtil INSTANCE
    • Method Summary

      Modifier and Type Method Description
      final static Pair<Integer, Integer> getSize(InputStream stream) This method checks for the dimension of the WebP image from the given InputStream.
      final static Integer get2BytesAsInt(InputStream stream)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getSize

         final static Pair<Integer, Integer> getSize(InputStream stream)

        This method checks for the dimension of the WebP image from the given InputStream. We don't support mark/reset and the Stream is always closed.

        Parameters:
        stream - The InputStream used for read WebP data