question: private final void _writeUTF8Segments ( byte [ ] utf8 , int offset , int totalLen ) throws IOException , JsonGenerationException { do { int len = Math . min ( _outputMaxContiguous , totalLen ) ; _writeUTF8Segment ( utf8 , offset , len ) ; offset += len ; totalLen -= len ; } while ( totalLen > 0 ) ; }
target:  Method called when UTF-8 encoded (but NOT yet escaped!) content is not guaranteed to fit in the output buffer after escaping; as such, we just need to chunk writes.