com.android.repository.api
Class ConsoleProgressIndicator

java.lang.Object
  extended by com.android.repository.api.ProgressIndicatorAdapter
      extended by com.android.repository.api.ConsoleProgressIndicator
All Implemented Interfaces:
ProgressIndicator

public class ConsoleProgressIndicator
extends ProgressIndicatorAdapter

A simple ProgressIndicator that prints log messages to stdout and stderr.


Constructor Summary
ConsoleProgressIndicator()
           
 
Method Summary
 void logError(java.lang.String s, java.lang.Throwable e)
          Logs an error, including a stacktrace.
 void logInfo(java.lang.String s)
          Logs an info message.
 void logWarning(java.lang.String s, java.lang.Throwable e)
          Logs a warning, including a stacktrace.
 
Methods inherited from class com.android.repository.api.ProgressIndicatorAdapter
cancel, getFraction, isCanceled, isCancellable, isIndeterminate, logError, logWarning, setCancellable, setFraction, setIndeterminate, setSecondaryText, setText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConsoleProgressIndicator

public ConsoleProgressIndicator()
Method Detail

logWarning

public void logWarning(@NonNull
                       java.lang.String s,
                       @Nullable
                       java.lang.Throwable e)
Description copied from interface: ProgressIndicator
Logs a warning, including a stacktrace.

Specified by:
logWarning in interface ProgressIndicator
Overrides:
logWarning in class ProgressIndicatorAdapter

logError

public void logError(@NonNull
                     java.lang.String s,
                     @Nullable
                     java.lang.Throwable e)
Description copied from interface: ProgressIndicator
Logs an error, including a stacktrace.

Specified by:
logError in interface ProgressIndicator
Overrides:
logError in class ProgressIndicatorAdapter

logInfo

public void logInfo(@NonNull
                    java.lang.String s)
Description copied from interface: ProgressIndicator
Logs an info message.

Specified by:
logInfo in interface ProgressIndicator
Overrides:
logInfo in class ProgressIndicatorAdapter