private void value ( final String val , final String quoteChar ) throws IOException { if ( val == null ) { return ; } String q = quoteChar ; if ( q == null ) { q = "" ; } if ( ( val . indexOf ( ' ' ) >= 0 ) || ( val . indexOf ( ' ' ) >= 0 ) ) { out ( "<![CDATA[" ) ; out ( q ) ; out ( val ) ; out ( q ) ; out ( "]]>" ) ; } else { out ( q ) ; out ( val ) ; out ( q ) ; } }
Write out a value