|
|
|
|
@ -1,5 +1,5 @@
@@ -1,5 +1,5 @@
|
|
|
|
|
/* |
|
|
|
|
* Copyright 2002-2009 the original author or authors. |
|
|
|
|
* Copyright 2002-2010 the original author or authors. |
|
|
|
|
* |
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
|
@ -32,6 +32,7 @@ import javax.xml.stream.util.XMLEventConsumer;
@@ -32,6 +32,7 @@ import javax.xml.stream.util.XMLEventConsumer;
|
|
|
|
|
import org.xml.sax.Attributes; |
|
|
|
|
import org.xml.sax.Locator; |
|
|
|
|
|
|
|
|
|
import org.springframework.util.Assert; |
|
|
|
|
import org.springframework.util.StringUtils; |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
@ -58,6 +59,7 @@ class StaxEventContentHandler extends AbstractStaxContentHandler {
@@ -58,6 +59,7 @@ class StaxEventContentHandler extends AbstractStaxContentHandler {
|
|
|
|
|
* @param consumer the consumer to write events to |
|
|
|
|
*/ |
|
|
|
|
StaxEventContentHandler(XMLEventConsumer consumer) { |
|
|
|
|
Assert.notNull(consumer, "'consumer' must not be null"); |
|
|
|
|
eventFactory = XMLEventFactory.newInstance(); |
|
|
|
|
eventConsumer = consumer; |
|
|
|
|
} |
|
|
|
|
|