public static FString formatToFString(char c, Object obj, Object aobj[]) { ReportFormat reportformat = ParseFormat.asFormat(obj, c); obj = new CharArrayOutPort(); try { reportformat.format(aobj, 0, ((Writer) (obj)), null); } // Misplaced declaration of an exception variable catch (Object obj) { throw new RuntimeException( (new StringBuilder()).append("Error in format: ").append(obj).toString()); } aobj = ((CharArrayOutPort) (obj)).toCharArray(); ((CharArrayOutPort) (obj)).close(); return new FString(((char[]) (aobj))); }
public static transient void formatToWriter(Writer writer, Object obj, Object aobj[]) { Object obj1 = writer; if (writer == null) { obj1 = OutPort.outDefault(); } try { if (obj instanceof MessageFormat) { ((Writer) (obj1)).write(((MessageFormat) obj).format(((Object) (aobj)))); return; } } // Misplaced declaration of an exception variable catch (Writer writer) { throw new RuntimeException( (new StringBuilder()).append("Error in format: ").append(writer).toString()); } writer = ((Writer) (obj)); if (!(obj instanceof ReportFormat)) { writer = ((Writer) (ParseFormat.parseFormat.apply1(obj))); } ((ReportFormat) writer).format(aobj, 0, ((Writer) (obj1)), null); return; }