Class UnpackedByteCount

java.lang.Object
org.apache.tika.pipes.core.extractor.UnpackedByteCount

public class UnpackedByteCount extends Object
Running total of bytes UnpackExtractor has written out for the current request, checked against UnpackConfig.maxUnpackBytesOrUnlimited().

One instance per request: create it alongside the request's UnpackHandler and bind it into the request's ParseContext. Not thread-safe.

  • Constructor Details

    • UnpackedByteCount

      public UnpackedByteCount()
  • Method Details

    • add

      public void add(long n)
    • get

      public long get()