public void writeIOR(String iorFile,org.omg.CORBA.Object iorObj) throws IOException {
  if (iorFile != null) {
    ORB orb=initORB(null);
    java.io.FileWriter outFile=new java.io.FileWriter(iorFile);
    java.io.PrintWriter writer=new java.io.PrintWriter(outFile);
    String ior=orb.object_to_string(iorObj);
    writer.println(ior);
    writer.close();
    if (Debug.debugging("corba")) {
      Debug.output(orb.object_to_string(iorObj));
    }
  }
}

public void writeIOR ( String iorFile , org . omg . CORBA . Object iorObj ) throws IOException { if ( iorFile != null ) { ORB orb = initORB ( null ) ; java . io . FileWriter outFile = new java . io . FileWriter ( iorFile ) ; java . io . PrintWriter writer = new java . io . PrintWriter ( outFile ) ; String ior = orb . object_to_string ( iorObj ) ; writer . println ( ior ) ; writer . close ( ) ; if ( Debug . debugging ( "corba" ) ) { Debug . output ( orb . object_to_string ( iorObj ) ) ; } } }
write the ior for a object to a file .
