public static void initializeEscapeMap(){
  if (xmlLowValueEscapeStringsInitialized == true) {
    return;
  }
synchronized (escapeInitLockObject) {
    if (xmlLowValueEscapeStringsInitialized == true) {
      return;
    }
    for (int i=0; i < xmlAllowedLowCharacterBound; i++) {
      if (isInvalidXMLCharacter(i)) {
        String escapedString=String.format("\\u%04x",i);
        xmlLowValueEscapeStrings[i]=escapedString;
      }
 else {
        xmlLowValueEscapeStrings[i]=null;
      }
    }
    xmlLowValueEscapeStringsInitialized=true;
  }
}

public static void initializeEscapeMap ( ) { if ( xmlLowValueEscapeStringsInitialized == true ) { return ; } synchronized ( escapeInitLockObject ) { if ( xmlLowValueEscapeStringsInitialized == true ) { return ; } for ( int i = 0 ; i < xmlAllowedLowCharacterBound ; i ++ ) { if ( isInvalidXMLCharacter ( i ) ) { String escapedString = String . format ( "\\u%04x" , i ) ; xmlLowValueEscapeStrings [ i ] = escapedString ; } else { xmlLowValueEscapeStrings [ i ] = null ; } } xmlLowValueEscapeStringsInitialized = true ; } }
initializes the map of characters to be escaped and their corresponding escape sequences . this method will be invoked automatically the first time a string is escaped / unescaped .
