public class TimingFieldParser extends Object implements SdpParser<TimingField>
TimingField objects.PARSE_ERROR| Constructor and Description |
|---|
TimingFieldParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(String sdp)
Checks whether the parse is capable of parsing a specific SDP line.
|
TimingField |
parse(String sdp)
Parses the SDP originating a new
SdpField object. |
void |
parse(TimingField field,
String sdp)
Parses the SDP to override the values of an existing
SdpField
object. |
public boolean canParse(String sdp)
SdpParsercanParse in interface SdpParser<TimingField>sdp - The SDP line to be parsedtrue if capable of parsing. Returns
false otherwise.public TimingField parse(String sdp) throws SdpException
SdpParserSdpField object.
Careful! The parser will blindly attempt to parse the SDP text.
Users should invoke the SdpParser.canParse(String) method beforehand to
make sure the parsers is able to parse the SDP text.
parse in interface SdpParser<TimingField>sdp - The SDP to be parsedSdpField object based on the SDP lineSdpException - In case the parser cannot parse the SDP line.public void parse(TimingField field, String sdp) throws SdpException
SdpParserSdpField
object.
Careful! The parser will blindly attempt to parse the SDP text.
Users should invoke the SdpParser.canParse(String) method beforehand to
make sure the parsers is able to parse the SDP text.
parse in interface SdpParser<TimingField>field - The SdpField to be overwrittensdp - The SDP to be parsedSdpException - In case the parser cannot parse the SDP line.Copyright © 2018 TeleStax, Inc.. All rights reserved.