mrglavas    2005/05/23 20:49:40

  Modified:    java/src/org/apache/xerces/util EncodingMap.java
  Log:
  Deprecating several static methods that mutate the encoding map.
  
  Revision  Changes    Path
  1.21      +17 -1     
xml-xerces/java/src/org/apache/xerces/util/EncodingMap.java
  
  Index: EncodingMap.java
  ===================================================================
  RCS file: 
/home/cvs/xml-xerces/java/src/org/apache/xerces/util/EncodingMap.java,v
  retrieving revision 1.20
  retrieving revision 1.21
  diff -u -r1.20 -r1.21
  --- EncodingMap.java  17 Mar 2004 19:50:03 -0000      1.20
  +++ EncodingMap.java  24 May 2005 03:49:40 -0000      1.21
  @@ -955,6 +955,10 @@
        * 
        * @param ianaEncoding The IANA encoding name.
        * @param javaEncoding The Java encoding name.
  +     * 
  +     * @deprecated Use of this method is not recommended. Its
  +     * effect is JVM wide and may cause unforeseen behaviour
  +     * for other applications running in the system.
        */
       public static void putIANA2JavaMapping(String ianaEncoding, 
                                              String javaEncoding) {
  @@ -974,6 +978,10 @@
        * Removes an IANA to Java encoding name mapping.
        * 
        * @param ianaEncoding The IANA encoding name.
  +     * 
  +     * @deprecated Use of this method is not recommended. Its
  +     * effect is JVM wide and may cause unforeseen behaviour
  +     * for other applications running in the system.
        */
       public static String removeIANA2JavaMapping(String ianaEncoding) {
           return (String)fIANA2JavaMap.remove(ianaEncoding);
  @@ -984,6 +992,10 @@
        * 
        * @param javaEncoding The Java encoding name.
        * @param ianaEncoding The IANA encoding name.
  +     * 
  +     * @deprecated Use of this method is not recommended. Its
  +     * effect is JVM wide and may cause unforeseen behaviour
  +     * for other applications running in the system.
        */
       public static void putJava2IANAMapping(String javaEncoding, 
                                              String ianaEncoding) {
  @@ -1003,6 +1015,10 @@
        * Removes a Java to IANA encoding name mapping.
        * 
        * @param javaEncoding The Java encoding name.
  +     * 
  +     * @deprecated Use of this method is not recommended. Its
  +     * effect is JVM wide and may cause unforeseen behaviour
  +     * for other applications running in the system.
        */
       public static String removeJava2IANAMapping(String javaEncoding) {
           return (String)fJava2IANAMap.remove(javaEncoding);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to