Пример #1
0
 public static List<XMPPInputOutputStream> getCompresionHandlers() {
   List<XMPPInputOutputStream> res =
       new ArrayList<XMPPInputOutputStream>(compressionHandlers.size());
   for (XMPPInputOutputStream ios : compressionHandlers) {
     if (ios.isSupported()) {
       res.add(ios);
     }
   }
   return res;
 }
Пример #2
0
 public static List getCompresionHandlers() {
   ArrayList arraylist = new ArrayList(compressionHandlers.size());
   Iterator iterator = compressionHandlers.iterator();
   do {
     if (!iterator.hasNext()) {
       break;
     }
     XMPPInputOutputStream xmppinputoutputstream = (XMPPInputOutputStream) iterator.next();
     if (xmppinputoutputstream.isSupported()) {
       arraylist.add(xmppinputoutputstream);
     }
   } while (true);
   return arraylist;
 }