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.
The number of bytes consumed by the decoder.
Optionalerrors: EntityErrorProducerAn object that is used to produce errors.
Signal to the parser that the end of the input was reached.
Remaining data will be emitted and relevant errors will be produced.
The number of characters consumed.
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.