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)
            {
                lineParser.parse(line, state);

                MapInfo.Builder builder = new MapInfo.Builder();

                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.getMedia().mapInfo = 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)
            {
                lineParser.parse(line, state);

                StartData.Builder builder = new StartData.Builder();
                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                StartData startData = builder.build();

                state.getMedia().setStartData(startData);
            }
            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());
            }
示例#6
0
            public void parse(String line, ParseState state)
            {
                if (state.startData != null)
                {
                    throw ParseException.create(ParseExceptionType.MULTIPLE_EXT_TAG_INSTANCES, getTag(), line);
                }

                StartData.Builder builder = new StartData.Builder();

                lineParser.parse(line, state);
                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());
                state.startData = builder.build();
            }
            public void parse(String line, ParseState state)
            {
                lineParser.parse(line, state);

                EncryptionData.Builder builder = new EncryptionData.Builder()
                                                 .withKeyFormat(Constants.DEFAULT_KEY_FORMAT)
                                                 .withKeyFormatVersions(Constants.DEFAULT_KEY_FORMAT_VERSIONS);

                ParseUtil.parseAttributes(line, builder, state, HANDLERS, getTag());

                EncryptionData encryptionData = builder.build();

                if (encryptionData.getMethod() != EncryptionMethod.NONE && encryptionData.getUri() == null)
                {
                    throw ParseException.create(ParseExceptionType.MISSING_ENCRYPTION_URI, getTag(), line);
                }

                state.getMedia().encryptionData = encryptionData;
            }