Package net.sf.basedb.util
Class InputStreamTracker.LinearScaleFactor
java.lang.Object
net.sf.basedb.util.InputStreamTracker.LinearScaleFactor
- All Implemented Interfaces:
InputStreamTracker.ScaleFactor
- Enclosing class:
- InputStreamTracker
public static class InputStreamTracker.LinearScaleFactor
extends Object
implements InputStreamTracker.ScaleFactor
Apply a linear scale factor so that when we have read N actual bytes
the getNumRead() method return N*scale bytes.
-
Field Summary
-
Constructor Summary
-
Method Summary
-
Field Details
-
scale
private final float scale
-
-
Constructor Details
-
LinearScaleFactor
public LinearScaleFactor(float scale)
-
-
Method Details
-
scale
public long scale(long numRead) - Specified by:
scale
in interfaceInputStreamTracker.ScaleFactor
-