public class OriginFieldParser extends Object implements SdpParser<OriginField>
OriginField objects.PARSE_ERROR| Constructor and Description |
|---|
OriginFieldParser() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(String sdp)
Checks whether the parse is capable of parsing a specific SDP line.
|
void |
parse(OriginField field,
String sdp)
Parses the SDP to override the values of an existing
SdpField
object. |
OriginField |
parse(String sdp)
Parses the SDP originating a new
SdpField object. |
public boolean canParse(String sdp)
SdpParsercanParse in interface SdpParser<OriginField>sdp - The SDP line to be parsedtrue if capable of parsing. Returns
false otherwise.public OriginField 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<OriginField>sdp - The SDP to be parsedSdpField object based on the SDP lineSdpException - In case the parser cannot parse the SDP line.public void parse(OriginField 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<OriginField>field - The SdpField to be overwrittensdp - The SDP to be parsedSdpException - In case the parser cannot parse the SDP line.Copyright © 2017 TeleStax, Inc.. All Rights Reserved.