CVS Update: xmlpull-api-v1/src/java/api/org/xmlpull/v1

Aleksander Andrzej Slominski <[email protected]>
Newsgroups gmane.text.xml.xmlpull.devel
Message-ID <[email protected]>
aslom       03/01/30 23:41:45

  Modified:    src/java/api/org/xmlpull/v1 XmlPullParser.java
                        XmlPullParserFactory.java XmlSerializer.java
  Log:
  applied javadoc patched provided by Pawel S. Veselov
  
  Revision  Changes    Path
  1.73      +6 -6      xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParser.java
  
  Index: XmlPullParser.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParser.java,v
  retrieving revision 1.72
  retrieving revision 1.73
  diff -u -b -t -w -r1.72 -r1.73
  --- XmlPullParser.java	24 Nov 2002 15:35:09 -0000	1.72
  +++ XmlPullParser.java	31 Jan 2003 04:41:45 -0000	1.73
  @@ -1028,8 +1028,8 @@
        * <p>Essentially it does this
        * <pre>
        *  if (type != getEventType()
  -     *  || (namespace != null && !namespace.equals( getNamespace () ) )
  -     *  || (name != null && !name.equals( getName() ) ) )
  +     *  || (namespace != null &amp;&amp;  !namespace.equals( getNamespace () ) )
  +     *  || (name != null &amp;&amp;  !name.equals( getName() ) ) )
        *     throw new XmlPullParserException( "expected "+ TYPES[ type ]+getPositionDescription());
        * </pre>
        */
  @@ -1043,8 +1043,8 @@
        *
        * <p>The motivation for this function is to allow to parse consistently both
        * empty elements and elements that has non empty content, for example for input: <ol>
  -     * <li>&lt;tag>foo&lt;/tag>
  -     * <li>&lt;tag>&lt;/tag> (which is equivalent to &lt;tag/>) </ol>
  +     * <li>&lt;tag&gt;foo&lt;/tag&gt;
  +     * <li>&lt;tag&gt;lt;/tag&gt; (which is equivalent to &lt;tag/&gt;
        * both input can be parsed with the same code:
        * <pre>
        *   p.nextTag()
  @@ -1089,10 +1089,10 @@
        * <p>essentially it does this
        * <pre>
        *   int eventType = next();
  -     *   if(eventType == TEXT && isWhitespace()) {   // skip whitespace
  +     *   if(eventType == TEXT &amp;&amp;  isWhitespace()) {   // skip whitespace
        *      eventType = next();
        *   }
  -     *   if (eventType != START_TAG && eventType != END_TAG) {
  +     *   if (eventType != START_TAG &amp;&amp;  eventType != END_TAG) {
        *      throw new XmlPullParserException("expected start or end tag", this, null);
        *   }
        *   return eventType;
  
  
  
  1.20      +0 -1      xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParserFactory.java
  
  Index: XmlPullParserFactory.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlPullParserFactory.java,v
  retrieving revision 1.19
  retrieving revision 1.20
  diff -u -b -t -w -r1.19 -r1.20
  --- XmlPullParserFactory.java	30 Jan 2003 19:39:55 -0000	1.19
  +++ XmlPullParserFactory.java	31 Jan 2003 04:41:45 -0000	1.20
  @@ -261,7 +261,6 @@
   
           String  classNamesLocation = null;
   
  -
           if (classNames == null || classNames.length() == 0 || "DEFAULT".equals(classNames)) {
               try {
                   InputStream is = context.getResourceAsStream (RESOURCE_NAME);
  
  
  
  1.13      +6 -7      xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlSerializer.java
  
  Index: XmlSerializer.java
  ===================================================================
  RCS file: /l/extreme/cvspub/xmlpull-api-v1/src/java/api/org/xmlpull/v1/XmlSerializer.java,v
  retrieving revision 1.12
  retrieving revision 1.13
  diff -u -b -t -w -r1.12 -r1.13
  --- XmlSerializer.java	15 Oct 2002 18:03:52 -0000	1.12
  +++ XmlSerializer.java	31 Jan 2003 04:41:45 -0000	1.13
  @@ -52,7 +52,7 @@
   
       /**
        * Return the current value of the feature with given name.
  -     * <p><strong>NOTE:</strong> unknown features are <string>always</strong> returned as false.
  +     * <p><strong>NOTE:</strong> unknown properties are <strong>always</strong> returned as null
        *
        * @param name The name of feature to be retrieved.
        * @return The value of named feature.
  @@ -88,7 +88,6 @@
        */
       public Object getProperty(String name);
   
  -
       /**
        * Set to use binary output stream with given encoding.
        */
  @@ -96,14 +95,14 @@
           throws IOException, IllegalArgumentException, IllegalStateException;
   
       /**
  -     * Set the output to the given writer;
  +     * Set the output to the given writer.
        * <p><b>WARNING</b> no information about encoding is available!
        */
       public void setOutput (Writer writer)
           throws IOException, IllegalArgumentException, IllegalStateException;
   
       /**
  -     * Write &lt;?xml declaration with encoding (if encoding not null)
  +     * Write &lt;&#63;xml declaration with encoding (if encoding not null)
        * and standalone flag (if standalone not null)
        * This method can only be called just after setOutput.
        */
  @@ -134,8 +133,8 @@
        * <a href="http://www.w3.org/XML/xml-names-19990114-errata#NE05">Namespaces in XML Errata</a>.
        * <p><b>NOTE:</b> to set default namespace use as prefix empty string.
        *
  -     * @argument prefix must be not null (or IllegalArgumentException is thrown)
  -     * @argument namespace must be not null
  +     * @param prefix must be not null (or IllegalArgumentException is thrown)
  +     * @param namespace must be not null
        */
       public void setPrefix (String prefix, String namespace)
           throws IOException, IllegalArgumentException, IllegalStateException;
  @@ -164,7 +163,7 @@
        *
        * <pre>
        * &lt;!-- outside --&gt;     0
  -     * &lt;root>                  1
  +     * &lt;root&gt;               1
        *   sometext                 1
        *     &lt;foobar&gt;         2
        *     &lt;/foobar&gt;        2
  
  
  


To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.