public static final String makeJavaPackage ( String path ) { String classNameComponents [ ] = split ( path , "/" ) ; StringBuilder legalClassNames = new StringBuilder ( ) ; for ( int i = 0 ; i < classNameComponents . length ; i ++ ) { legalClassNames . append ( makeJavaIdentifier ( classNameComponents [ i ] ) ) ; if ( i < classNameComponents . length - 1 ) { legalClassNames . append ( ' ' ) ; } } return legalClassNames . toString ( ) ; }
Converts the given path to a Java package or fully - qualified class name