Lines Matching refs:signature
231 byte[] signature = new byte[8];
232 stream.readFully(signature);
234 if (signature[0] != (byte)137 ||
235 signature[1] != (byte)80 ||
236 signature[2] != (byte)78 ||
237 signature[3] != (byte)71 ||
238 signature[4] != (byte)13 ||
239 signature[5] != (byte)10 ||
240 signature[6] != (byte)26 ||
241 signature[7] != (byte)10) {
242 throw new IIOException("Bad PNG signature!");
259 // Re-use signature array to bulk-read these unsigned byte values
260 stream.readFully(signature, 0, 5);
261 int bitDepth = signature[0] & 0xff;
262 int colorType = signature[1] & 0xff;
263 int compressionMethod = signature[2] & 0xff;
264 int filterMethod = signature[3] & 0xff;
265 int interlaceMethod = signature[4] & 0xff;