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 Summary

    Fields
    Modifier and Type
    Field
    Description
    final int
    Number of well-formed HTML entities stripped from TEXT.
    final int
    Content byte count written into the destination.
    final int
    Number of well-formed tags parsed (including comments).
  • Constructor Summary

    Constructors
    Constructor
    Description
    Result(int length, int tagCount, int entityCount)
     
  • Method Summary

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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).
    • entityCount

      public final int entityCount
      Number of well-formed HTML entities stripped from TEXT.
  • Constructor Details

    • Result

      public Result(int length, int tagCount, int entityCount)