Lines Matching refs:signatureCheckBytes
2103 byte[] signatureCheckBytes = new byte[SIGNATURE_CHECK_SIZE]; in getMimeType()
2104 if (in.read(signatureCheckBytes) != SIGNATURE_CHECK_SIZE) { in getMimeType()
2108 if (isJpegFormat(signatureCheckBytes)) { in getMimeType()
2110 } else if (isRafFormat(signatureCheckBytes)) { in getMimeType()
2112 } else if (isOrfFormat(signatureCheckBytes)) { in getMimeType()
2114 } else if (isRw2Format(signatureCheckBytes)) { in getMimeType()
2125 private static boolean isJpegFormat(byte[] signatureCheckBytes) throws IOException { in isJpegFormat() argument
2127 if (signatureCheckBytes[i] != JPEG_SIGNATURE[i]) { in isJpegFormat()
2140 private boolean isRafFormat(byte[] signatureCheckBytes) throws IOException { in isRafFormat() argument
2143 if (signatureCheckBytes[i] != rafSignatureBytes[i]) { in isRafFormat()
2158 private boolean isOrfFormat(byte[] signatureCheckBytes) throws IOException { in isOrfFormat() argument
2160 new ByteOrderedDataInputStream(signatureCheckBytes); in isOrfFormat()
2177 private boolean isRw2Format(byte[] signatureCheckBytes) throws IOException { in isRw2Format() argument
2179 new ByteOrderedDataInputStream(signatureCheckBytes); in isRw2Format()