Package org.signal.libsignal.media
Class WebpSanitizer
-
- All Implemented Interfaces:
public class WebpSanitizerA WebP format “sanitizer”.
The sanitizer currently simply checks the validity of a WebP file input, so that passing a malformed file to an unsafe parser can be avoided.
-
-
Constructor Summary
Constructors Constructor Description WebpSanitizer()
-
Method Summary
Modifier and Type Method Description static voidsanitize(InputStream input)Sanitize a WebP input. -
-
Method Detail
-
sanitize
static void sanitize(InputStream input)
Sanitize a WebP input.
It's recommended that the given InputStream be capable of
skipping, and that it skips fewer bytes than requested only when the end of stream is reached.- Parameters:
input- A WebP format input stream.
-
-
-
-