@Override protected void consumeAttributes(AttributeHelper helper) throws ParseException { value = helper.consumeFloat(null, true); }
@Override protected void consumeAttributes(AttributeHelper helper) throws ParseException { value = helper.consumeFloat(null, false); }
@Override protected void consumeAttributes(AttributeHelper helper) throws ParseException { value = helper.consumeFloat(null, false); }
/** * Gets the value of a float attribute and remove it from the list. * * @param name attribute name * @param required indicates attribute is required * @return the float value of this attribute, 0 by default * @throws ParseException if required is set and the attribute is not defined, * or if the attribute value is not a valid float */ public float consumeFloat(String name, boolean required) throws ParseException { return consumeFloat(name, required, 0); }
/** * Gets the value of a float attribute and remove it from the list. * * @param name attribute name * @param required indicates attribute is required * @return the float value of this attribute, 0 by default * @throws ParseException if required is set and the attribute is not defined, * or if the attribute value is not a valid float */ public float consumeFloat(String name, boolean required) throws ParseException { return consumeFloat(name, required, 0); }
/** * Gets the value of a float attribute and remove it from the list. * * @param name attribute name * @param required indicates attribute is required * @return the float value of this attribute, 0 by default * @throws ParseException if required is set and the attribute is not defined, * or if the attribute value is not a valid float */ public float consumeFloat(String name, boolean required) throws ParseException { return consumeFloat(name, required, 0); }
@Override protected void consumeAttributes(AttributeHelper helper) throws ParseException { channels = helper.consumeInteger(CHANNELS, false); duration = helper.consumeLong(DURATION, false); height = helper.consumeInteger(HEIGHT, false); samplingrate = helper.consumeFloat(SAMPLINGRATE, false); type = helper.consume(TYPE, false); width = helper.consumeInteger(WIDTH, false); }
@Override protected void consumeAttributes(AttributeHelper helper) throws ParseException { channels = helper.consumeInteger(CHANNELS, false); duration = helper.consumeLong(DURATION, false); height = helper.consumeInteger(HEIGHT, false); samplingrate = helper.consumeFloat(SAMPLINGRATE, false); type = helper.consume(TYPE, false); width = helper.consumeInteger(WIDTH, false); }