src/jdk.packager.services/share/classes/jdk/packager/services/singleton/SingleInstanceService.java
equal
deleted
inserted
replaced
36 import java.nio.charset.Charset; |
36 import java.nio.charset.Charset; |
37 |
37 |
38 /** |
38 /** |
39 * The {@code SingleInstanceService} class provides public methods for using |
39 * The {@code SingleInstanceService} class provides public methods for using |
40 * Single Instance functionality for Java Packager. To use these methods, |
40 * Single Instance functionality for Java Packager. To use these methods, |
41 * the option named "-singleton" must be specified on javapackager command line. |
41 * the option named "-singleton" must be specified on jpackager command line. |
42 * |
42 * |
43 * @since 10 |
43 * @since 12 |
44 */ |
44 */ |
45 public class SingleInstanceService { |
45 public class SingleInstanceService { |
46 |
46 |
47 static private boolean DEBUG = false; |
47 static private boolean DEBUG = false; |
48 static private PrintStream DEBUG_STREAM = null; |
48 static private PrintStream DEBUG_STREAM = null; |
57 static final int ENCODING_UNICODE = 2; |
57 static final int ENCODING_UNICODE = 2; |
58 |
58 |
59 static final String ENCODING_PLATFORM_NAME = "UTF-8"; |
59 static final String ENCODING_PLATFORM_NAME = "UTF-8"; |
60 static final String ENCODING_UNICODE_NAME = "UTF-16LE"; |
60 static final String ENCODING_UNICODE_NAME = "UTF-16LE"; |
61 |
61 |
62 static final String APP_ID_PREFIX = "javapackager.si."; |
62 static final String APP_ID_PREFIX = "jpackager.si."; |
63 |
63 |
64 private SingleInstanceService() {} |
64 private SingleInstanceService() {} |
65 |
65 |
66 static void enableDebug(boolean enable, PrintStream stream) { |
66 static void enableDebug(boolean enable, PrintStream stream) { |
67 DEBUG = enable; |
67 DEBUG = enable; |