public static AckAnswer ackAnswer(XmlPullParser parser) throws XmlPullParserException, IOException { ParserUtils.assertAtStartTag(parser); long h = ParserUtils.getLongAttribute(parser, "h"); parser.next(); ParserUtils.assertAtEndTag(parser); return new AckAnswer(h); }
private void sendSmAcknowledgementInternal() throws NotConnectedException { packetWriter.sendStreamElement(new AckAnswer(clientHandledStanzasCount)); }
private void sendSmAcknowledgementInternal() throws NotConnectedException, InterruptedException { packetWriter.sendStreamElement(new AckAnswer(clientHandledStanzasCount)); }