question: private void writeXMLContent ( char [ ] content , int start , int length , boolean escapeChars ) throws XMLStreamException { if ( ! escapeChars ) { _writer . write ( content , start , length ) ; return ; } int startWritePos = start ; final int end = start + length ; for ( int index = start ; index < end ; index ++ ) { char ch = content [ index ] ; if ( ! _writer . canEncode ( ch ) ) { _writer . write ( content , startWritePos , index - startWritePos ) ; _writer . write ( ENCODING_PREFIX ) ; _writer . write ( Integer . toHexString ( ch ) ) ; _writer . write ( SEMICOLON ) ; startWritePos = index + 1 ; continue ; } switch ( ch ) { case OPEN_START_TAG : _writer . write ( content , startWritePos , index - startWritePos ) ; _writer . write ( "&lt;" ) ; startWritePos = index + 1 ; break ; case AMPERSAND : _writer . write ( content , startWritePos , index - startWritePos ) ; _writer . write ( "&amp;" ) ; startWritePos = index + 1 ; break ; case CLOSE_START_TAG : _writer . write ( content , startWritePos , index - startWritePos ) ; _writer . write ( "&gt;" ) ; startWritePos = index + 1 ; break ; } } _writer . write ( content , startWritePos , end - startWritePos ) ; }
target:  Writes XML content to underlying writer. Escapes characters unless escaping character feature is turned off.