cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1362521 - /cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
Date Tue, 17 Jul 2012 14:42:49 GMT
Author: dkulp
Date: Tue Jul 17 14:42:49 2012
New Revision: 1362521

URL: http://svn.apache.org/viewvc?rev=1362521&view=rev
Log:
Merged revisions 1361330 via  git cherry-pick from
https://svn.apache.org/repos/asf/cxf/branches/2.5.x-fixes

........
  r1361330 | dkulp | 2012-07-13 14:42:30 -0400 (Fri, 13 Jul 2012) | 19 lines

  Merged revisions 1361327 via  git cherry-pick from
  https://svn.apache.org/repos/asf/cxf/branches/2.6.x-fixes

  ........
    r1361327 | dkulp | 2012-07-13 14:39:21 -0400 (Fri, 13 Jul 2012) | 11 lines

    Merged revisions 1361324 via  git cherry-pick from
    https://svn.apache.org/repos/asf/cxf/trunk

    ........
      r1361324 | dkulp | 2012-07-13 14:36:04 -0400 (Fri, 13 Jul 2012) | 3 lines

      Use the current token type as recorded in the fragment to determine the
      flags

    ........

  ........

........

Modified:
    cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java

Modified: cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java?rev=1362521&r1=1362520&r2=1362521&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
(original)
+++ cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
Tue Jul 17 14:42:49 2012
@@ -56,6 +56,22 @@ public class FragmentStreamReader extend
     public int getEventType() {
         return current;
     }
+    
+    public boolean isCharacters() {
+        return current == XMLStreamReader.CHARACTERS;
+    }
+
+    public boolean isEndElement() {
+        return current == XMLStreamReader.END_ELEMENT;
+    }
+
+    public boolean isStartElement() {
+        return current == XMLStreamReader.START_ELEMENT;
+    }
+
+    public boolean isWhiteSpace() {
+        return current == XMLStreamReader.CHARACTERS && reader.isWhiteSpace();
+    }    
 
     public boolean hasNext() throws XMLStreamException {
         



Mime
View raw message