Class HtmlByteStripper.Result

java.lang.Object
org.apache.tika.ml.chardetect.HtmlByteStripper.Result
Enclosing class:
HtmlByteStripper

public static final class HtmlByteStripper.Result extends Object
Result of a strip operation: new content length and the number of well-formed tags (including comments) successfully parsed. Callers use tagCount == 0 to detect "no markup present" — a more encoding-agnostic signal than post-hoc byte-count heuristics.
  • Field Details

    • length

      public final int length
      Content byte count written into the destination.
    • tagCount

      public final int tagCount
      Number of well-formed tags parsed (including comments).
  • Constructor Details

    • Result

      public Result(int length, int tagCount)