@ Override public void characters ( char [ ] ch , int start , int length ) throws SAXException { try { for ( int j = 0 ; j < length ; j ++ ) { char c = ch [ start + j ] ; switch ( c ) { case ' ' : this . writer . write ( "&lt;" ) ; break ; case ' ' : this . writer . write ( "&gt;" ) ; break ; case ' ' : this . writer . write ( "&amp;" ) ; break ; default : this . writer . write ( c ) ; } } } catch ( IOException ioe ) { throw ( SAXException ) new SAXException ( ioe ) . initCause ( ioe ) ; } }
Writes out characters .