org.springframework.batch.item.xml.stax
Class NoStartEndDocumentStreamWriter

java.lang.Object
  extended by org.springframework.batch.item.xml.stax.NoStartEndDocumentStreamWriter
All Implemented Interfaces:
javax.xml.stream.util.XMLEventConsumer, javax.xml.stream.XMLEventWriter

public class NoStartEndDocumentStreamWriter
extends Object

Delegating XMLEventWriter, which ignores start and end document events, but passes through everything else.

Author:
peter.zozom, Robert Kasanicky

Field Summary
protected  javax.xml.stream.XMLEventWriter wrappedEventWriter
           
 
Constructor Summary
NoStartEndDocumentStreamWriter(javax.xml.stream.XMLEventWriter wrappedEventWriter)
           
 
Method Summary
 void add(javax.xml.stream.events.XMLEvent event)
           
 void add(javax.xml.stream.XMLEventReader reader)
           
 void close()
           
 void flush()
           
 NamespaceContext getNamespaceContext()
           
 String getPrefix(String uri)
           
 void setDefaultNamespace(String uri)
           
 void setNamespaceContext(NamespaceContext context)
           
 void setPrefix(String prefix, String uri)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

wrappedEventWriter

protected javax.xml.stream.XMLEventWriter wrappedEventWriter
Constructor Detail

NoStartEndDocumentStreamWriter

public NoStartEndDocumentStreamWriter(javax.xml.stream.XMLEventWriter wrappedEventWriter)
Method Detail

add

public void add(javax.xml.stream.events.XMLEvent event)
         throws javax.xml.stream.XMLStreamException
Specified by:
add in interface javax.xml.stream.util.XMLEventConsumer
Specified by:
add in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

add

public void add(javax.xml.stream.XMLEventReader reader)
         throws javax.xml.stream.XMLStreamException
Specified by:
add in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

close

public void close()
           throws javax.xml.stream.XMLStreamException
Specified by:
close in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

flush

public void flush()
           throws javax.xml.stream.XMLStreamException
Specified by:
flush in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

getNamespaceContext

public NamespaceContext getNamespaceContext()
Specified by:
getNamespaceContext in interface javax.xml.stream.XMLEventWriter

getPrefix

public String getPrefix(String uri)
                 throws javax.xml.stream.XMLStreamException
Specified by:
getPrefix in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

setDefaultNamespace

public void setDefaultNamespace(String uri)
                         throws javax.xml.stream.XMLStreamException
Specified by:
setDefaultNamespace in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

setNamespaceContext

public void setNamespaceContext(NamespaceContext context)
                         throws javax.xml.stream.XMLStreamException
Specified by:
setNamespaceContext in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException

setPrefix

public void setPrefix(String prefix,
                      String uri)
               throws javax.xml.stream.XMLStreamException
Specified by:
setPrefix in interface javax.xml.stream.XMLEventWriter
Throws:
javax.xml.stream.XMLStreamException


Copyright © 2009 SpringSource. All Rights Reserved.