You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cxf.apache.org by dk...@apache.org on 2012/07/13 20:42:30 UTC

svn commit: r1361330 - /cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java

Author: dkulp
Date: Fri Jul 13 18:42:30 2012
New Revision: 1361330

URL: http://svn.apache.org/viewvc?rev=1361330&view=rev
Log:
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.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java

Modified: cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java?rev=1361330&r1=1361329&r2=1361330&view=diff
==============================================================================
--- cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java (original)
+++ cxf/branches/2.5.x-fixes/common/common/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java Fri Jul 13 18:42:30 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 {