Polish d65203e2d3
* Minor formatting update * Use a regexp to discard xml header in tests
This commit is contained in:
@@ -73,6 +73,7 @@ import org.springframework.util.StringUtils;
|
||||
* @author Robert Kasanicky
|
||||
* @author Michael Minella
|
||||
* @author Parikshit Dutta
|
||||
* @author Mahmoud Ben Hassine
|
||||
*/
|
||||
public class StaxEventItemWriter<T> extends AbstractItemStreamItemWriter<T> implements
|
||||
ResourceAwareItemWriterItemStream<T>, InitializingBean {
|
||||
@@ -635,7 +636,7 @@ ResourceAwareItemWriterItemStream<T>, InitializingBean {
|
||||
XMLEventFactory factory = createXmlEventFactory();
|
||||
|
||||
// write start document
|
||||
if (getStandalone()==null) {
|
||||
if (getStandalone() == null) {
|
||||
writer.add(factory.createStartDocument(getEncoding(), getVersion()));
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -28,6 +28,7 @@ import org.springframework.util.Assert;
|
||||
*
|
||||
* @author Michael Minella
|
||||
* @author Parikshit Dutta
|
||||
* @author Mahmoud Ben Hassine
|
||||
* @since 4.0
|
||||
* @see StaxEventItemWriter
|
||||
*/
|
||||
@@ -200,7 +201,7 @@ public class StaxEventItemWriterBuilder<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Standalone document declaration for the output document. Defaults to null.
|
||||
* Standalone document declaration for the output document. Defaults to {@code null}.
|
||||
*
|
||||
* @param standalone Boolean standalone document declaration
|
||||
* @return the current instance of the builder
|
||||
|
||||
Reference in New Issue
Block a user