Package org.apache.tika.ml.chardetect
Class HtmlByteStripper.Result
java.lang.Object
org.apache.tika.ml.chardetect.HtmlByteStripper.Result
- Enclosing class:
- HtmlByteStripper
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 Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
length
public final int lengthContent byte count written into the destination. -
tagCount
public final int tagCountNumber of well-formed tags parsed (including comments).
-
-
Constructor Details
-
Result
public Result(int length, int tagCount)
-