xmlWriter = filter;
}
}
public XMLStreamWriterFilter removeFilter() {
XMLStreamWriterFilter filter = null;
if (xmlStreamWriterFilter != null) {
filter = xmlStreamWriterFilter;
if (log.isDebugEnabled()) {
log.debug("removing filter " + filter.getClass());
}
xmlWriter = xmlStreamWriterFilter.getDelegate();
filter.setDelegate(null);
xmlStreamWriterFilter = (xmlWriter instanceof XMLStreamWriterFilter) ?
(XMLStreamWriterFilter) xmlWriter :
null;
}
return filter;