Пример #1
0
 public static synchronized PacketProcessor getProcessor() {
   if (instance == null) {
     instance = new PacketProcessor();
     instance.reset();
   }
   return instance;
 }
Пример #2
0
 public static synchronized PacketProcessor getProcessor(Mode mode) {
   if (instance == null) {
     instance = new PacketProcessor();
   }
   instance.reset(mode);
   return instance;
 }