Back to Fresco

WebpUtil

docs/javadoc/reference/com/facebook/imageutils/WebpUtil.html

3.6.010.6 KB
Original Source

Fresco

|

|

Packages | Classes

Classes

Packages | Classes

Summary: Methods | Inherited Methods | [Expand All]

public class

WebpUtil

extends Object

| java.lang.Object | | ↳ | com.facebook.imageutils.WebpUtil |

Class Overview

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

Summary

Public Methods
static int
static Pair<Integer, Integer>
This method checks for the dimension of the WebP image from the given InputStream.

| [Expand] Inherited Methods | | --- | | From class java.lang.Object

| Object | clone() | | boolean | equals(Object arg0) | | void | finalize() | | final Class<?> | getClass() | | int | hashCode() | | final void | notify() | | final void | notifyAll() | | String | toString() | | final void | wait(long arg0, int arg1) | | final void | wait(long arg0) | | final void | wait() |

|

Public Methods

public static int get2BytesAsInt(InputStream is)

Throws

| IOException | |

public static Pair<Integer, Integer> getSize(InputStream is)

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

| is | The InputStream used for read WebP data |

Returns
  • The Size of the WebP image if any or null if the size is not available

+Generated by Doclava. +