[This is preliminary documentation and subject to change.]
Parse the PDU contained in the given byte array.
Depending on the type PDU parsed, an instance of ObexParsedRequestPdu or ObexParsedResponsePdu initialised with the result of the parsing operation.
This method simply parses the PDU and returns its content. In most cases the higher level ParseResponse and ParseResponseToConnect methods will be preferable. They also check and use the extra 'connect' bytes in CONNECT responses.
| Exception Type | Condition |
|---|---|
| ArgumentNullException |
buffer is null. |
| ArgumentOutOfRangeException | The length of the PDU (int its length field) is longer than length. |
| ProtocolViolationException | The PDU is invalid; one of its fields or header overruns, or one of the headers is in an invalid format, for instance a non-null-terminated string. |
ObexPduFactory Class | Brecham.Obex.Pdus Namespace | ParseResponse | ParseResponse | ParseResponseToConnect