Code example for DataBufferFloat

0
      case DataBuffer.TYPE_USHORT:
	return new DataBufferUShort(size, numBanks);
      case DataBuffer.TYPE_INT:
	return new DataBufferInt(size, numBanks);
      case DataBuffer.TYPE_FLOAT:
	return new DataBufferFloat(size, numBanks);
      case DataBuffer.TYPE_DOUBLE:
	return new DataBufferDouble(size, numBanks);
      default: 
	throw new UnsupportedOperationException();
      } 
  } 
   
  /** 
   * Create a data buffer of a particular type. 
   * 
   * @param dataType the desired data type of the buffer 
   * @param data an array containing the data 
   * @param size the size of the data buffer bank 
   */