예제 #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;
 }