import java.util.concurrent.ConcurrentLinkedQueue;
import java.util.Date;
+import com.ctc.wstx.stax.WstxInputFactory;
/**
* Slim XMPP Stream reader. This reader only understands enough XMPP
public synchronized long waitCoreEvent(long timeout) {
if(msgQueue.peek() != null || timeout == 0) return 0;
-
long start = new Date().getTime();
+
try{
if(timeout < 0) wait();
else wait(timeout);
try {
- XMLInputFactory factory = XMLInputFactory.newInstance();
+ //XMLInputFactory factory = XMLInputFactory.newInstance();
+ XMLInputFactory factory = new com.ctc.wstx.stax.WstxInputFactory();
/** disable as many unused features as possible to speed up the parsing */
factory.setProperty(XMLInputFactory.IS_REPLACING_ENTITY_REFERENCES, Boolean.FALSE);