Package org.docx4j.org.apache.poi.util
Class PngUtils
java.lang.Object
org.docx4j.org.apache.poi.util.PngUtils
public final class PngUtils
extends java.lang.Object
-
Method Summary
Modifier and Type Method Description static booleanmatchesPngHeader(byte[] data, int offset)Checks if the offset matches the PNG header.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
matchesPngHeader
public static boolean matchesPngHeader(byte[] data, int offset)Checks if the offset matches the PNG header.- Parameters:
data- the data to check.offset- the offset to check at.- Returns:
trueif the offset matches.
-