Package ws.schild.jave.progress
Class EchoingProgressListener
java.lang.Object
ws.schild.jave.progress.EchoingProgressListener
- All Implemented Interfaces:
VideoProgressListener
Simple class to echo progress to Standard out - or any PrintStream.
- Author:
- mressler
-
Constructor Summary
ConstructorsConstructorDescriptionEchoingProgressListener(String prefix) EchoingProgressListener(String prefix, PrintStream out) -
Method Summary
Modifier and TypeMethodDescriptionvoidonBegin()It has begun!voidIt has ended!voidAn error has occurred!voidAny messages that arise during the activity.voidonProgress(Double progress) Meaningful progress has been made.
-
Constructor Details
-
EchoingProgressListener
public EchoingProgressListener() -
EchoingProgressListener
-
EchoingProgressListener
-
-
Method Details
-
onBegin
public void onBegin()Description copied from interface:VideoProgressListenerIt has begun!- Specified by:
onBeginin interfaceVideoProgressListener
-
onMessage
Description copied from interface:VideoProgressListenerAny messages that arise during the activity.- Specified by:
onMessagein interfaceVideoProgressListener- Parameters:
message- Whatever the process reported out.
-
onProgress
Description copied from interface:VideoProgressListenerMeaningful progress has been made.- Specified by:
onProgressin interfaceVideoProgressListener- Parameters:
progress- Current percentage complete. (0-1)
-
onError
Description copied from interface:VideoProgressListenerAn error has occurred!- Specified by:
onErrorin interfaceVideoProgressListener- Parameters:
message- The error message reported by the process.
-
onComplete
public void onComplete()Description copied from interface:VideoProgressListenerIt has ended!- Specified by:
onCompletein interfaceVideoProgressListener
-