public void parse(String line, ParseState state) { mLineParser.parse(line, state); MediaData.Builder builder = new MediaData.Builder(); state.getMaster().clearMediaDataState(); ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag()); state.getMaster().mediaData.Add(builder.build()); }
public void parse(Attribute attribute, MediaData.Builder builder, ParseState state) { bool isAutoSelect = ParseUtil.parseYesNo(attribute); builder.withAutoSelect(isAutoSelect); state.getMaster().isNotAutoSelect = !isAutoSelect; if (state.getMaster().isDefault&& !isAutoSelect) { throw ParseException.create(ParseExceptionType.AUTO_SELECT_DISABLED_FOR_DEFAULT, tag: null, context: attribute.ToString()); } }
public void parse(String line, ParseState state) { mLineParser.parse(line, state); StreamInfo.Builder builder = new StreamInfo.Builder(); ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag()); state.getMaster().streamInfo = builder.build(); }
public void parse(String line, ParseState state) { mLineParser.parse(line, state); IFrameStreamInfo.Builder builder = new IFrameStreamInfo.Builder(); ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag()); state.getMaster().iFramePlaylists.Add(builder.build()); }
public void parse(String line, ParseState state) { PlaylistData.Builder builder = new PlaylistData.Builder(); MasterParseState masterState = state.getMaster(); masterState.playlists.Add(builder .withUri(line) .withStreamInfo(masterState.streamInfo) .build()); masterState.streamInfo = null; }