return header[0] == 0x42 && header[1] == 0x4D;
int infoHeaderSize = (header[14] & 0xFF) | ((header[15] & 0xFF) << 8) | ((header[16] & 0xFF) << 16) | ((header[17] & 0xFF) << 24); return header[0] == 0x42 && header[1] == 0x4D && infoHeaderSize >= BMPHeaderFixedSize;
boolean isFileFormat(LEDataInputStream stream) {	try {		byte[] header = new byte[2];		stream.read(header);		stream.unread(header);		return header[0] == 0x42 && header[1] == 0x4D;	} catch (Exception e) {		return false;	}}