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
FieldsModifier and TypeFieldDescriptionfinal intNumber of well-formed HTML entities stripped from TEXT.final intContent byte count written into the destination.final intNumber of well-formed tags parsed (including comments). -
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). -
entityCount
public final int entityCountNumber of well-formed HTML entities stripped from TEXT.
-
-
Constructor Details
-
Result
public Result(int length, int tagCount, int entityCount)
-