FileDocCategorySizeDatePackage
DdmConsole.javaAPI DocAndroid 1.5 API2885Wed May 06 22:41:08 BST 2009com.android.ddmuilib.console

DdmConsole

public class DdmConsole extends Object
Static Console used to ouput messages. By default outputs the message to System.out and System.err, but can receive a IDdmConsole object which will actually do something.

Fields Summary
private static IDdmConsole
mConsole
Constructors Summary
Methods Summary
public static voidprintErrorToConsole(java.lang.String message)
Prints a message to the android console.

param
message the message to print
param
forceDisplay if true, this force the console to be displayed.

        if (mConsole != null) {
            mConsole.printErrorToConsole(message);
        } else {
            System.err.println(message);
        }
    
public static voidprintErrorToConsole(java.lang.String[] messages)
Prints several messages to the android console.

param
messages the messages to print
param
forceDisplay if true, this force the console to be displayed.

        if (mConsole != null) {
            mConsole.printErrorToConsole(messages);
        } else {
            for (String message : messages) {
                System.err.println(message);
            }
        }
    
public static voidprintToConsole(java.lang.String message)
Prints a message to the android console.

param
message the message to print
param
forceDisplay if true, this force the console to be displayed.

        if (mConsole != null) {
            mConsole.printToConsole(message);
        } else {
            System.out.println(message);
        }
    
public static voidprintToConsole(java.lang.String[] messages)
Prints several messages to the android console.

param
messages the messages to print
param
forceDisplay if true, this force the console to be displayed.

        if (mConsole != null) {
            mConsole.printToConsole(messages);
        } else {
            for (String message : messages) {
                System.out.println(message);
            }
        }
    
public static voidsetConsole(IDdmConsole console)
Sets a IDdmConsole to override the default behavior of the console

param
console The new IDdmConsole

        mConsole = console;