public static synchronized PacketProcessor getProcessor() { if (instance == null) { instance = new PacketProcessor(); instance.reset(); } return instance; }
public static synchronized PacketProcessor getProcessor(Mode mode) { if (instance == null) { instance = new PacketProcessor(); } instance.reset(mode); return instance; }