MCPcopy Create free account
hub / github.com/codenameone/CodenameOne / isPNG

Method isPNG

CodenameOne/src/com/codename1/ui/Image.java:945–948  ·  view source on GitHub ↗
(InputStream inputStream)

Source from the content-addressed store, hash-verified

943 ///
944 /// true if PNG, false otherwise
945 public static boolean isPNG(InputStream inputStream) throws IOException {
946 String type = Util.guessMimeType(inputStream);
947 return "image/png".equals(type);
948 }
949
950 private HashMap<Dimension, Object> getScaleCache() {
951 if (scaleCache == null) {

Callers 1

exifRotationMethod · 0.95

Calls 2

guessMimeTypeMethod · 0.95
equalsMethod · 0.65

Tested by

no test coverage detected