class CRC16 {

	public short crc(int crc, byte data) {
		byte in = reverseInput ? reverseByte(data) : data;
		short out = (short) (table[((crc >> 8) ^ in) & 0xFF] ^ (crc << 8));
		return out;
	}

	private  CRC16(int polynomial,int initial, boolean reverseInput, boolean reverseOutput, int xorOutput);

}