private void escape(String value) throws Exception {
  int size=value.length();
  for (int i=0; i < size; i++) {
    escape(value.charAt(i));
  }
}

private void escape ( String value ) throws Exception { int size = value . length ( ) ; for ( int i = 0 ; i < size ; i ++ ) { escape ( value . charAt ( i ) ) ; } }
this is used to write the specified value to the output with translation to any symbol characters or non text characters . this will translate the symbol characters such as " & amp ; " , " & gt ; " , " & lt ; " , and " & quot ; " . this also writes any non text and non symbol characters as integer values like " & # 123 ; " .
