public void setBigEndian(boolean bigEndian) {
		if(bigEndian!=this.bigEndian) {
			byte tmp;
			for(int i = 0; i<data.length; i += 2) {
				tmp = data[i];
				data[i] = data[i+1];
				data[i+1] = tmp;
			}
			this.bigEndian = bigEndian;
		}
	}
public void setBigEndian(boolean bigEndian) {
		if(bigEndian!=this.bigEndian) {
			byte tmp;
			for(int i = 0; i<data.length; i += 2) {
				tmp = data[i];
				data[i] = data[i+1];
				data[i+1] = tmp;
			}
			this.bigEndian = bigEndian;
		}
	}
public void setBigEndian ( boolean bigEndian ) { if ( bigEndian != this . bigEndian ) { byte tmp ; for ( int i = 0 ; i < data . length ; i += 2 ) { tmp = data [ i ] ; data [ i ] = data [ i + 1 ] ; data [ i + 1 ] = tmp ; } this . bigEndian = bigEndian ; } }
Sets the endianness for the data.

@param bigEndian if true the data will be in big endian, else in little
endian
Sets the endianness for the data .