T - The type of SDP SdpField the parser is related to.public interface SdpParser<T extends SdpField>
| Modifier and Type | Field and Description |
|---|---|
static String |
PARSE_ERROR |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canParse(String sdp)
Checks whether the parse is capable of parsing a specific SDP line.
|
T |
parse(String sdp)
Parses the SDP originating a new
SdpField object. |
void |
parse(T field,
String sdp)
Parses the SDP to override the values of an existing
SdpField
object. |
static final String PARSE_ERROR
boolean canParse(String sdp)
sdp - The SDP line to be parsedtrue if capable of parsing. Returns
false otherwise.T parse(String sdp) throws SdpException
SdpField object.
Careful! The parser will blindly attempt to parse the SDP text.
Users should invoke the canParse(String) method beforehand to
make sure the parsers is able to parse the SDP text.
sdp - The SDP to be parsedSdpField object based on the SDP lineSdpException - In case the parser cannot parse the SDP line.void parse(T field, String sdp) throws SdpException
SdpField
object.
Careful! The parser will blindly attempt to parse the SDP text.
Users should invoke the canParse(String) method beforehand to
make sure the parsers is able to parse the SDP text.
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.