private static int getFileChecksum(InputStream stream) {
		try {
			Scanner sc = new Scanner(stream, "UTF-8");
			CRC32 checksum = new CRC32();
			while (sc.hasNextLine()) {
				String line = sc.nextLine().trim();
				if (!line.isEmpty()) {
					checksum.update(line.getBytes("UTF-8"));
				}
			}
			sc.close();
			return (int) checksum.getValue();
		} catch (IOException e) {
			return 0;
		}

	}