package innovimax.mixthem.arguments;

/**
* <p>This is a detailed enumeration of modes used to mix files.</p>
* @author Innovimax
* @version 1.0
*/
public enum Mode {	
    CHAR("char"),
    BYTE("byte");
    
    private final String name;
    
    private Mode(final String name) {
        this.name = name;
    }
    
    /**
    * Returns the name of this mode on command line.
    * @return The name of the mode on command line
    */
    public String getName() {
        return this.name;
    }
    
}

package innovimax.mixthem.arguments;

/**
* <p>This is a detailed enumeration of modes used to mix files.</p>
* @author Innovimax
* @version 1.0
*/
public enum Mode {	
    CHAR("char"),
    BYTE("byte");
    
    private final String name;
    
    private Mode(final String name) {
        this.name = name;
    }
    
    /**
    * Returns the name of this mode on command line.
    * @return The name of the mode on command line
    */
    public String getName() {
        return this.name;
    }
    
    /**
    * Finds the Mode object correponding to a name
    * @param name The name of the mode in command line
    * @return The {@link Mode} object
    */    
    public static Mode findByName(final String name) {
        for (Mode mode : values()) {
            if (mode.getName().equals(name)) {
                return mode;
            }
        }
        return null;
    }
    
}

Update Mode.java