This documentation is part of the Link Checker Library project.

de.tw.website.linkchecker.util
Class DefaultProgressImpl

java.lang.Object
  |
  +--de.tw.website.linkchecker.util.DefaultProgressImpl
All Implemented Interfaces:
Progress

public class DefaultProgressImpl
extends java.lang.Object
implements Progress

Implementation of Interface Progress, which prints all progress notifications to a PrintWriter.

Version:
1.0
Author:
Thomas Weinbrenner

Constructor Summary
DefaultProgressImpl(java.io.FileWriter fw)
          Constructor.
DefaultProgressImpl(java.io.PrintWriter pw)
          Constructor.
 
Method Summary
 void close()
          Closes the associated PrintWriter.
 void end()
          Called at end of loop.
 void next(float percentDone, java.lang.String element)
          Called for each element.
 void next(java.lang.String element)
          Called for each element, if no percentDone value can be calculated.
 void start(java.lang.String action)
          Called when new loop starts.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultProgressImpl

public DefaultProgressImpl(java.io.FileWriter fw)
Constructor.

DefaultProgressImpl

public DefaultProgressImpl(java.io.PrintWriter pw)
Constructor.
Method Detail

start

public void start(java.lang.String action)
Description copied from interface: Progress
Called when new loop starts.
Specified by:
start in interface Progress
See Also:
Progress.start(String)

next

public void next(float percentDone,
                 java.lang.String element)
Description copied from interface: Progress
Called for each element.
Specified by:
next in interface Progress
See Also:
Progress.next(float, String)

next

public void next(java.lang.String element)
Description copied from interface: Progress
Called for each element, if no percentDone value can be calculated.
Specified by:
next in interface Progress
See Also:
Progress.next(String)

end

public void end()
Description copied from interface: Progress
Called at end of loop.
Specified by:
end in interface Progress
See Also:
Progress.end()

close

public void close()
           throws java.io.IOException
Closes the associated PrintWriter.

This documentation is part of the Link Checker Library project.