String line;
String name;
String value;
String[] values;
float[] floatValues = { 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
EqualizerPreset preset;
int index;
br = new BufferedReader(new FileReader(file));
line = br.readLine();
while (line != null) {
index = line.indexOf("="); //$NON-NLS-1$
if (index != -1) {
name = line.substring(0, index);
value = line.substring(index + 1);
values = value.split(":"); //$NON-NLS-1$
floatValues[0] = new Float(values[0]).floatValue();
floatValues[1] = new Float(values[1]).floatValue();
floatValues[2] = new Float(values[2]).floatValue();
floatValues[3] = new Float(values[3]).floatValue();
floatValues[4] = new Float(values[4]).floatValue();
floatValues[5] = new Float(values[5]).floatValue();
floatValues[6] = new Float(values[6]).floatValue();
floatValues[7] = new Float(values[7]).floatValue();
floatValues[8] = new Float(values[8]).floatValue();
floatValues[9] = new Float(values[9]).floatValue();
preset = new EqualizerPreset(name, floatValues[0], floatValues[1], floatValues[2], floatValues[3], floatValues[4], floatValues[5], floatValues[6], floatValues[7], floatValues[8], floatValues[9]);
_presetList.put(name, preset);
}
line = br.readLine();
}