Class InputStreamTracker.CurvedScaleFactor

java.lang.Object
net.sf.basedb.util.InputStreamTracker.CurvedScaleFactor
All Implemented Interfaces:
InputStreamTracker.ScaleFactor
Enclosing class:
InputStreamTracker

public static class InputStreamTracker.CurvedScaleFactor extends Object implements InputStreamTracker.ScaleFactor
Apply a curved scale factor that has a max upper limit. To begin with each byte is counted as 1, but the the more bytes that are read the scale factor is changed along curved path so that we get closer and closer to the max limit but never over.
  • Field Details

    • max

      private final double max
  • Constructor Details

    • CurvedScaleFactor

      public CurvedScaleFactor(long max)
  • Method Details