tries to read up to max_header_length bytes from inputstream is and use read bytes to determine type of the image contained in is . if provided input stream does not support mark , then this method consumes data from is and it is not safe to read further bytes from is after this method returns . otherwise , if mark is supported , it will be used to preserve oryginal content of is . concode_field_sep byte[] WEBP_VP8L_BYTES concode_elem_sep int SIMPLE_WEBP_HEADER_LENGTH concode_elem_sep byte[] WEBP_VP8_BYTES concode_elem_sep int MAX_HEADER_LENGTH concode_elem_sep byte[] GIF_HEADER_89A concode_elem_sep byte[] JPEG_HEADER concode_elem_sep byte[] WEBP_VP8X_BYTES concode_elem_sep byte[] PNG_HEADER concode_elem_sep byte[] WEBP_RIFF_BYTES concode_elem_sep int GIF_HEADER_LENGTH concode_elem_sep int EXTENDED_WEBP_HEADER_LENGTH concode_elem_sep byte[] WEBP_NAME_BYTES concode_elem_sep byte[] GIF_HEADER_87A concode_field_sep boolean isExtendedWebpHeaderWithAlpha concode_elem_sep boolean isExtendedWebpHeader concode_elem_sep byte[] asciiBytes concode_elem_sep boolean isWebpHeader concode_elem_sep boolean isPngHeader concode_elem_sep boolean matchBytePattern concode_elem_sep ImageFormat doGetImageFormat concode_elem_sep boolean isJpegHeader concode_elem_sep ImageFormat getImageFormat_WrapIOException concode_elem_sep boolean isLosslessWebpHeader concode_elem_sep boolean isGifHeader concode_elem_sep boolean isAnimatedWebpHeader concode_elem_sep int readHeaderFromStream concode_elem_sep boolean isSimpleWebpHeader concode_elem_sep ImageFormat getWebpFormat
ImageFormat function ( final InputStream arg0 ) { Preconditions . checkNotNull ( arg0 ) ; final byte [ ] loc0 = new byte [ MAX_HEADER_LENGTH ] ; final int loc1 = readHeaderFromStream ( arg0 , loc0 ) ; return doGetImageFormat ( loc0 , loc1 ) ; }