Code example for ResourceBundle

Methods: getString

0
     @SuppressWarnings("static-access") 
     private static void addBulkdataOptions(Options opts) {
         OptionGroup blkGroup = new OptionGroup();
         blkGroup.addOption(OptionBuilder
                 .withLongOpt("no-bulkdata") 
                 .withDescription(rb.getString("no-bulkdata"))
                 .create("B")); 
         blkGroup.addOption(OptionBuilder
                 .withLongOpt("alloc-bulkdata") 
                 .withDescription(rb.getString("alloc-bulkdata"))
                 .create("b")); 
         opts.addOptionGroup(blkGroup);
         opts.addOption(OptionBuilder
                 .withLongOpt("blk-file-dir") 
                 .hasArg() 
                 .withArgName("directory") 
                 .withDescription(rb.getString("blk-file-dir"))
                 .create("d")); 
         opts.addOption(OptionBuilder
                 .withLongOpt("blk-file-prefix") 
                 .hasArg() 
                 .withArgName("prefix") 
                 .withDescription(rb.getString("blk-file-prefix"))
                 .create()); 
         opts.addOption(OptionBuilder
                 .withLongOpt("blk-file-suffix") 
                 .hasArg() 
                 .withArgName("suffix") 
                 .withDescription(rb.getString("blk-file-suffix"))
                 .create()); 
         opts.addOption("c", "cat-blk-files", false,
                  rb.getString("cat-blk-files"));
         opts.addOption(null, "keep-blk-files", false,
                 rb.getString("keep-blk-files"));
         opts.addOption(OptionBuilder
                 .withLongOpt("blk-spec") 
                 .hasArg() 
                 .withArgName("xml-file") 
                 .withDescription(rb.getString("blk-spec"))
                 .create("X")); 
     } 
 
     @SuppressWarnings("static-access") 
     private static void addFileEncodingOptions(Options opts) {