When {@link #maybeRecord(char)} is called, it will add thesupplied character to the recording buffer but only if recording is in progress. This is useful in our {@link com.google.security.streamhtmlparser.HtmlParser}as the caller logic to enable/disable recording is decoupled from the logic of recording.
This is a specialized class - of no use to external code - which aims to be 100% compatible with the corresponding logic in the C-version of the HtmlParser, specifically in statemachine.c
. In particular:
|
|
|
|