Class 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 Detail

      • max

        private final double max
    • Constructor Detail

      • CurvedScaleFactor

        public CurvedScaleFactor​(long max)