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