public void setMaster() { if (isMedia()) { throw new ParseException(ParseExceptionType.MASTER_IN_MEDIA); } if (mMasterParseState == null) { mMasterParseState = new MasterParseState(); } }
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; }