src/java.base/share/classes/sun/launcher/LauncherHelper.java

Print this page
rev 10526 : 8038277: Improve the bootstrap performance of cacerts keystore (core and security)
Contributed-by: Otavio Santana <otaviojava@java.net>


 352         outBuf = outBuf.append(getLocalizedMessage("java.launcher.opt.vmselect",
 353                 vm1, vm2));
 354     }
 355 
 356     /**
 357      * Appends the vm synoym message to the header, already created.
 358      * initHelpSystem must be called before using this method.
 359      */
 360     static void appendVmSynonymMessage(String vm1, String vm2) {
 361         outBuf = outBuf.append(getLocalizedMessage("java.launcher.opt.hotspot",
 362                 vm1, vm2));
 363     }
 364 
 365     /**
 366      * Appends the vm Ergo message to the header, already created.
 367      * initHelpSystem must be called before using this method.
 368      */
 369     static void appendVmErgoMessage(boolean isServerClass, String vm) {
 370         outBuf = outBuf.append(getLocalizedMessage("java.launcher.ergo.message1",
 371                 vm));
 372         outBuf = (isServerClass)
 373              ? outBuf.append(",\n" +
 374                 getLocalizedMessage("java.launcher.ergo.message2") + "\n\n")
 375              : outBuf.append(".\n\n");
 376     }
 377 
 378     /**
 379      * Appends the last invariant part to the previously created messages,
 380      * and finishes up the printing to the desired output stream.
 381      * initHelpSystem must be called before using this method.
 382      */
 383     static void printHelpMessage(boolean printToStderr) {
 384         initOutput(printToStderr);
 385         outBuf = outBuf.append(getLocalizedMessage("java.launcher.opt.footer",
 386                 File.pathSeparator));
 387         ostream.println(outBuf.toString());
 388     }
 389 
 390     /**
 391      * Prints the Xusage text to the desired output stream.
 392      */
 393     static void printXUsageMessage(boolean printToStderr) {
 394         initOutput(printToStderr);
 395         ostream.println(getLocalizedMessage("java.launcher.X.usage",




 352         outBuf = outBuf.append(getLocalizedMessage("java.launcher.opt.vmselect",
 353                 vm1, vm2));
 354     }
 355 
 356     /**
 357      * Appends the vm synoym message to the header, already created.
 358      * initHelpSystem must be called before using this method.
 359      */
 360     static void appendVmSynonymMessage(String vm1, String vm2) {
 361         outBuf = outBuf.append(getLocalizedMessage("java.launcher.opt.hotspot",
 362                 vm1, vm2));
 363     }
 364 
 365     /**
 366      * Appends the vm Ergo message to the header, already created.
 367      * initHelpSystem must be called before using this method.
 368      */
 369     static void appendVmErgoMessage(boolean isServerClass, String vm) {
 370         outBuf = outBuf.append(getLocalizedMessage("java.launcher.ergo.message1",
 371                 vm));
 372                 outBuf = (isServerClass) ? outBuf.append(",\n")
 373                                 .append(getLocalizedMessage("java.launcher.ergo.message2"))
 374                                 .append("\n\n") : outBuf.append(".\n\n");

 375     }
 376 
 377     /**
 378      * Appends the last invariant part to the previously created messages,
 379      * and finishes up the printing to the desired output stream.
 380      * initHelpSystem must be called before using this method.
 381      */
 382     static void printHelpMessage(boolean printToStderr) {
 383         initOutput(printToStderr);
 384         outBuf = outBuf.append(getLocalizedMessage("java.launcher.opt.footer",
 385                 File.pathSeparator));
 386         ostream.println(outBuf.toString());
 387     }
 388 
 389     /**
 390      * Prints the Xusage text to the desired output stream.
 391      */
 392     static void printXUsageMessage(boolean printToStderr) {
 393         initOutput(printToStderr);
 394         ostream.println(getLocalizedMessage("java.launcher.X.usage",