protected HeadersExtension parseHeaders ( XmlPullParser parser ) throws IOException , XmlPullParserException , SmackParsingException { HeadersExtension headersExtension = null ; /* We are either at start of headers, start of data or end of req/res */ if ( parser . next ( ) == XmlPullParser . START_TAG && parser . getName ( ) . equals ( HeadersExtension . ELEMENT ) ) { headersExtension = HeadersProvider . INSTANCE . parse ( parser ) ; parser . next ( ) ; } return headersExtension ; }
Parses HeadersExtension element if any .