Ejemplo n.º 1
0
 public static synchronized PacketProcessor getProcessor() {
   if (instance == null) {
     instance = new PacketProcessor();
     instance.reset();
   }
   return instance;
 }
Ejemplo n.º 2
0
 public static synchronized PacketProcessor getProcessor(Mode mode) {
   if (instance == null) {
     instance = new PacketProcessor();
   }
   instance.reset(mode);
   return instance;
 }