private static void convert(AScene scene,InputStream in,OutputStream out) throws IOException, DefException, ParseException {
  IndexUnit iu=JavaParser.parse(in);
  extractScene(iu,scene);
  try (Writer w=new BufferedWriter(new OutputStreamWriter(out))){
    IndexFileWriter.write(scene,w);
  }
 }

private static void convert ( AScene scene , InputStream in , OutputStream out ) throws IOException , DefException , ParseException { IndexUnit iu = JavaParser . parse ( in ) ; extractScene ( iu , scene ) ; try ( Writer w = new BufferedWriter ( new OutputStreamWriter ( out ) ) ) { IndexFileWriter . write ( scene , w ) ; } }
augment given scene with information from stubfile , reading stubs from input stream and writing jaif to output stream .
