コード例 #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;
 }