com.tapina.robe.swi.clib.stdio.printf
Class PrintfEngine

java.lang.Object
  extended bycom.tapina.robe.swi.clib.stdio.printf.PrintfEngine
Direct Known Subclasses:
Lava3Printf

public abstract class PrintfEngine
extends java.lang.Object

Created by IntelliJ IDEA. User: gareth Date: 17-May-2005 Time: 20:01:14 To change this template use File | Settings | File Templates.


Constructor Summary
PrintfEngine()
           
 
Method Summary
static PrintfEngine getInstance()
          This method finds the printf implementation by reflection.
abstract  void printf(java.lang.String formatString, VarArgs va)
           
abstract  java.lang.String sprintf(java.lang.String formatString, VarArgs va)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PrintfEngine

public PrintfEngine()
Method Detail

printf

public abstract void printf(java.lang.String formatString,
                            VarArgs va)

sprintf

public abstract java.lang.String sprintf(java.lang.String formatString,
                                         VarArgs va)

getInstance

public static final PrintfEngine getInstance()
This method finds the printf implementation by reflection. This allows us to have multiple implementations which will only load successfully if their required dependencies are present. Otherwise, they will not load but in all cases the rest of the application remains decoupled from the dependencies and so will load and run correctly.

Returns:
implementation


Copyright © 2003-2005 . All Rights Reserved.