public void add(String fileName,String jarName){
  String packageName;
  int pos;
  if ((pos=fileName.lastIndexOf("/")) != -1) {
    packageName=fileName.substring(0,pos);
  }
 else {
    packageName=fileName;
  }
  addMapping(packageName,jarName);
}

public void add ( String fileName , String jarName ) { String packageName ; int pos ; if ( ( pos = fileName . lastIndexOf ( "/" ) ) != - 1 ) { packageName = fileName . substring ( 0 , pos ) ; } else { packageName = fileName ; } addMapping ( packageName , jarName ) ; }
add the mapping from the specified file to the specified jar file . if there were no mapping for the package of the specified file before , a new linked list will be created , the jar file is added to the list and a new mapping from the package to the jar file list is added to the hashmap . otherwise , the jar file will be added to the end of the existing list .
