The tree used to decode entities.
The function that is called when a codepoint is decoded.
For multi-byte named entities, this will be called multiple times,
with the second codepoint, and the same consumed
value.
Optional
errors: EntityErrorProducerAn object that is used to produce errors.
Resets the instance to make it reusable.
Write an entity to the decoder. This can be called multiple times with partial entities. If the entity is incomplete, the decoder will return -1.
Mirrors the implementation of getDecoder
, but with the ability to stop decoding if the
entity is incomplete, and resume when the next string is written.
The string containing the entity (or a continuation of the entity).
The offset at which the entity begins. Should be 0 if this is not the first call.
The number of characters that were consumed, or -1 if the entity is incomplete.
Token decoder with support of writing partial entities.