Sha256: 72d5a86f1c3238dd9eebfd17f0d7bab31c899e1f5484ae26d250ff163917d8d9
Contents?: true
Size: 751 Bytes
Versions: 75
Compression:
Stored size: 751 Bytes
Contents
package j2me.lang; import java.io.PrintStream; import com.rho.Sprintf; import com.rho.RhoEmptyLogger; import com.rho.RhoLogger; import com.xruby.runtime.builtin.RubyArray; public class PrintStreamMe { private static final RhoLogger LOG = RhoLogger.RHO_STRIP_LOG ? new RhoEmptyLogger() : new RhoLogger("APP"); public static void printf( PrintStream out, String strFormat, RubyArray args) { String strRes = Sprintf.sprintf(strFormat, args); if ( out == System.out ) LOG.INFO(strRes); else if ( out == System.err ) LOG.ERROR(strRes); else out.print(strRes); } public static String sprintf( String strFormat, RubyArray args ) { return Sprintf.sprintf(strFormat, args); } }
Version data entries
75 entries across 75 versions & 1 rubygems