private static String createGeneratorName(String output)
    {
        String fileName = FilenameUtil.getFileName(output);
        StringBuilder sb = new StringBuilder();
        for (int i = 0; i < fileName.length(); i++)
        {
            char c = fileName.charAt(i);
            if (isAlpha(c) || isNumber(c) || isAllowedCharacter(c))
            {
                sb.append(c);
            }
            else
            {
                sb.append('_');
            }
        }
        return sb.toString();
    }
The main execution point of compiling protos.

@author David Yu
@created Jan 5, 2010
protostuff-compiler/src/main/java/io/protostuff/compiler/CompilerMain.java