Class ProgressAdapter

java.lang.Object
jp.cssj.cti2.progress.ProgressAdapter
All Implemented Interfaces:
ProgressListener

public class ProgressAdapter extends Object implements ProgressListener
An adapter that simplifies implementing ProgressListenter.
  • Constructor Details

    • ProgressAdapter

      public ProgressAdapter()
  • Method Details

    • sourceLength

      public void sourceLength(long sourceLength)
      Description copied from interface: ProgressListener

      Receives 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:
      sourceLength in interface ProgressListener
      Parameters:
      sourceLength - The size of the main document in bytes.
    • progress

      public void progress(long serverRead)
      Description copied from interface: ProgressListener
      Receives 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:
      progress in interface ProgressListener
      Parameters:
      serverRead - The number of bytes read.