示例#1
0
 public void printError(java.io.PrintStream o) {
   if (failureMode != null) {
     failureMode.printStackTrace(o);
   } else {
     if (out != null && out.checkError()) o.println(outputFileName + ": Output write error");
   }
 }
示例#2
0
  public boolean writeClasses(ConstantPool consts, ConstantPool sharedconsts) {
    ClassClass classes[] = ClassClass.getClassVector(classMaker);
    ClassClass.setTypes();

    // write out some constant pool stuff here,
    writeProlog();

    try {
      writeAllNativeTables(classes);
    } catch (RuntimeException e) {
      out.flush();
      System.out.println(e);
      e.printStackTrace(System.out);
      formatError = true;
    }
    writeEpilog();
    return (!formatError) && (!out.checkError());
  }