Package org.docx4j.org.apache.poi.util
Class PngUtils
java.lang.Object
org.docx4j.org.apache.poi.util.PngUtils
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]File header for PNG format. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanmatchesPngHeader(byte[] data, int offset) Checks if the offset matches the PNG header.
-
Field Details
-
PNG_FILE_HEADER
private static final byte[] PNG_FILE_HEADERFile header for PNG format.
-
-
Constructor Details
-
PngUtils
private PngUtils()
-
-
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.
-