You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xerces.apache.org by an...@apache.org on 2001/08/28 10:49:12 UTC

cvs commit: xml-xerces/java/src/org/apache/xerces/parsers BasicParserConfiguration.java

andyc       01/08/28 01:49:12

  Modified:    java/src/org/apache/xerces/parsers
                        BasicParserConfiguration.java
  Log:
  Slight update to BasicParserConfiguration.
  
  Revision  Changes    Path
  1.3       +17 -1     xml-xerces/java/src/org/apache/xerces/parsers/BasicParserConfiguration.java
  
  Index: BasicParserConfiguration.java
  ===================================================================
  RCS file: /home/cvs/xml-xerces/java/src/org/apache/xerces/parsers/BasicParserConfiguration.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- BasicParserConfiguration.java	2001/08/23 00:35:31	1.2
  +++ BasicParserConfiguration.java	2001/08/28 08:49:12	1.3
  @@ -61,6 +61,7 @@
   import java.io.IOException;
   import java.io.Reader;
   import java.util.Hashtable;
  +import java.util.Locale;
   import java.util.Vector;
   
   import org.apache.xerces.impl.Constants;
  @@ -128,7 +129,7 @@
    * @author Arnaud  Le Hors, IBM
    * @author Andy Clark, IBM
    *
  - * @version $Id: BasicParserConfiguration.java,v 1.2 2001/08/23 00:35:31 lehors Exp $
  + * @version $Id: BasicParserConfiguration.java,v 1.3 2001/08/28 08:49:12 andyc Exp $
    */
   public abstract class BasicParserConfiguration
       implements XMLParserConfiguration {
  @@ -184,6 +185,9 @@
   
       // data
   
  +    /** Locale. */
  +    protected Locale fLocale;
  +
       /** Recognized properties. */
       protected Vector fRecognizedProperties;
   
  @@ -510,6 +514,18 @@
           fProperties.put(propertyId, value);
   
       } // setProperty(String,Object)
  +
  +    /**
  +     * Set the locale to use for messages.
  +     *
  +     * @param locale The locale object to use for localization of messages.
  +     *
  +     * @exception XNIException Thrown if the parser does not support the
  +     *                         specified locale.
  +     */
  +    public void setLocale(Locale locale) throws XNIException {
  +        fLocale = locale;
  +    } // setLocale(Locale)
   
       //
       // XMLComponentManager methods
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xerces-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xerces-cvs-help@xml.apache.org