Using the options is described in the following examples of the java2cob command.
All of the adapter classes that are related to the java.io.PrintStream class and the java.util.Date class are generated.
c:\> java2cob java.io.PrintStream java.util.Date
The adapter class that is related to all println methods of the java.io.PrintStream class and that is related to all constructors of the java.util.Date class are generated.
c:\> java2cob -r java.io.PrintStream -gm println -r java.util.Date -gc
Only the adapter classes that are related to the println(Object) of the java.io.PrintStream class and to the Date() constructor of the java.util.Date class are generated.
c:\> java2cob -r java.io.PrintStream -gm "println(java.lang.Object)" -r java.util.Date -gc "Date()"