cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1361324 - /cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
Date Fri, 13 Jul 2012 18:36:05 GMT
Author: dkulp
Date: Fri Jul 13 18:36:04 2012
New Revision: 1361324

URL: http://svn.apache.org/viewvc?rev=1361324&view=rev
Log:
Use the current token type as recorded in the fragment to determine the
flags

Modified:
    cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java

Modified: cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java
URL: http://svn.apache.org/viewvc/cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java?rev=1361324&r1=1361323&r2=1361324&view=diff
==============================================================================
--- cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java (original)
+++ cxf/trunk/api/src/main/java/org/apache/cxf/staxutils/FragmentStreamReader.java Fri Jul
13 18:36:04 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