protected void definePackage ( File container , String className ) throws IOException { int classIndex = className . lastIndexOf ( ' ' ) ; if ( classIndex == - 1 ) { return ; } String packageName = className . substring ( 0 , classIndex ) ; if ( getPackage ( packageName ) != null ) { // already defined return ; } // define the package now Manifest manifest = getJarManifest ( container ) ; if ( manifest == null ) { definePackage ( packageName , null , null , null , null , null , null , null ) ; } else { definePackage ( container , packageName , manifest ) ; } }
Define the package information associated with a class .