void writeClassfile(String classname,OutputStream out) throws NotFoundException, IOException, CannotCompileException {
  InputStream fin=openClassfile(classname);
  if (fin == null)   throw new NotFoundException(classname);
  try {
    copyStream(fin,out);
  }
  finally {
    fin.close();
  }
}

void writeClassfile ( String classname , OutputStream out ) throws NotFoundException , IOException , CannotCompileException { InputStream fin = openClassfile ( classname ) ; if ( fin == null ) throw new NotFoundException ( classname ) ; try { copyStream ( fin , out ) ; } finally { fin . close ( ) ; } }
this method does not close the output stream .
