Package jp.cssj.cti2.progress
Class ProgressAdapter
java.lang.Object
jp.cssj.cti2.progress.ProgressAdapter
- All Implemented Interfaces:
ProgressListener
An adapter that simplifies implementing ProgressListenter.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidprogress(long serverRead) Receives the number of bytes of the main document that have been processed.voidsourceLength(long sourceLength) Receives the server's estimate of the main document's size.
-
Constructor Details
-
ProgressAdapter
public ProgressAdapter()
-
-
Method Details
-
sourceLength
public void sourceLength(long sourceLength) Description copied from interface:ProgressListenerReceives the server's estimate of the main document's size.
This method may not be called, and the value passed to it may be inaccurate.
- Specified by:
sourceLengthin interfaceProgressListener- Parameters:
sourceLength- The size of the main document in bytes.
-
progress
public void progress(long serverRead) Description copied from interface:ProgressListenerReceives the number of bytes of the main document that have been processed.This method may not be called, and the value passed to it may be inaccurate.
- Specified by:
progressin interfaceProgressListener- Parameters:
serverRead- The number of bytes read.
-