Takes the array of standar Args passed from main method and parses the '-' and the characters after arg. - The value -1 is a special flag that is used to indicate the beginning of the queue of flags and it is also to tell the end of a group of switches. This method will generate 3 internal queues. - A queue that has the switch flag arguments. e.g. -dvV will hold d, v, V, -1. - A queue holding the string arguments needed by the switch flag arguments. If character -p requires a string argument. The string argument is saved in the string argument queue. - A queue holding a list of files string parameters not associated with a switch flag. -a -v -p myvalue test.xml test1.xml this queue will containt test.xml test1.xml
@param arguments
@param argsWithOptions
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.