public void parse(String line, ParseState state) { lineParser.parse(line, state); Match match = ParseUtil.match(Constants.EXTINF_PATTERN, line, getTag()); state.getMedia().trackInfo = new TrackInfo(ParseUtil.parseFloat(match.Groups[1].Value, getTag()), match.Groups[2].Value); }
public void parse(Attribute attribute, StartData.Builder builder, ParseState state) { builder.withTimeOffset(ParseUtil.parseFloat(attribute.value)); }
public override void parse(Attribute attribute, T builder, ParseState state) { builder.withFrameRate(ParseUtil.parseFloat(attribute.value, tag)); }