Got it!
I finally figured out how to redirect the output stream and
then return the var's .toString().
Java:
public static String main(String[] args)
throws Exception
{
ByteArrayOutputStream outstream = new
ByteArrayOutputStream();
PrintStream ps = new PrintStream( outstream );
System.setOut( ps );
if ( args.length < 1 )
{
System.out.println("usage: java InetLoad
inet_sales_spreadsheet");
return(outstream.toString());
}
inetLoad.run();
return(outstream.toString());
}
CF:
<cfoutput>
#UploadObject.main(params)#
</cfoutput>
Time for a beer.