/** * Template method for handling {@code SAXResult}s. * <p>This implementation delegates to {@code marshalSaxHandlers}. * @param graph the root of the object graph to marshal * @param saxResult the {@code SAXResult} * @throws XmlMappingException if the given object cannot be marshalled to the result * @see #marshalSaxHandlers(Object, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler) */ protected void marshalSaxResult(Object graph, SAXResult saxResult) throws XmlMappingException { ContentHandler contentHandler = saxResult.getHandler(); Assert.notNull(contentHandler, "ContentHandler not set on SAXResult"); LexicalHandler lexicalHandler = saxResult.getLexicalHandler(); marshalSaxHandlers(graph, contentHandler, lexicalHandler); }
m_resultLexicalHandler = saxResult.getLexicalHandler();
m_resultLexicalHandler = saxResult.getLexicalHandler();
m_resultLexicalHandler = saxResult.getLexicalHandler();
LexicalHandler lexicalHandler = target.getLexicalHandler();
public SAXResultXMLStreamWriterImpl(SAXResult result) throws XMLStreamException { _lexicalHandler = result.getLexicalHandler(); _contentHandler = result.getHandler(); }
public SaxSerializer(SAXResult result) { this(result.getHandler(),result.getLexicalHandler()); }
public SaxSerializer(SAXResult result) { this(result.getHandler(),result.getLexicalHandler()); }
public SaxSerializer(SAXResult result) { this(result.getHandler(),result.getLexicalHandler()); }
public SaxSerializer(SAXResult result) { this(result.getHandler(),result.getLexicalHandler()); }
public SaxSerializer(SAXResult result) { this(result.getHandler(),result.getLexicalHandler()); }
/** * Template method for handling {@code SAXResult}s. * <p>This implementation delegates to {@code marshalSaxHandlers}. * @param graph the root of the object graph to marshal * @param saxResult the {@code SAXResult} * @throws XmlMappingException if the given object cannot be marshalled to the result * @see #marshalSaxHandlers(Object, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler) */ protected void marshalSaxResult(Object graph, SAXResult saxResult) throws XmlMappingException { ContentHandler contentHandler = saxResult.getHandler(); Assert.notNull(contentHandler, "ContentHandler not set on SAXResult"); LexicalHandler lexicalHandler = saxResult.getLexicalHandler(); marshalSaxHandlers(graph, contentHandler, lexicalHandler); }
/** * Template method for handling <code>SAXResult</code>s. This implementation defers to * <code>marshalSaxHandlers</code>. * * @param graph the root of the object graph to marshal * @param saxResult the <code>SAXResult</code> * @throws XmlMappingException if the given object cannot be marshalled to the result * @see #marshalSaxHandlers(Object,org.xml.sax.ContentHandler,org.xml.sax.ext.LexicalHandler) */ protected void marshalSaxResult(Object graph, SAXResult saxResult) throws XmlMappingException { ContentHandler contentHandler = saxResult.getHandler(); Assert.notNull(contentHandler, "ContentHandler not set on SAXResult"); LexicalHandler lexicalHandler = saxResult.getLexicalHandler(); marshalSaxHandlers(graph, contentHandler, lexicalHandler); }
private void doValidate(SAXSource source, Result result) throws SAXException, IOException, TransformerConfigurationException { if (result == null) doValidate(source, null, null, null); else if (result instanceof SAXResult) { SAXResult saxResult = (SAXResult)result; doValidate(source, saxResult.getHandler(), saxResult.getLexicalHandler(), null); } else { TransformerHandler identityHandler = getIdentityTransformerHandler(); identityHandler.setResult(result); doValidate(source, identityHandler, identityHandler, identityHandler); } }
private void doValidate(SAXSource source, Result result) throws SAXException, IOException, TransformerConfigurationException { if (result == null) doValidate(source, null, null, null); else if (result instanceof SAXResult) { SAXResult saxResult = (SAXResult)result; doValidate(source, saxResult.getHandler(), saxResult.getLexicalHandler(), null); } else { TransformerHandler identityHandler = getIdentityTransformerHandler(); identityHandler.setResult(result); doValidate(source, identityHandler, identityHandler, identityHandler); } }
callback.saxResult(saxSource.getHandler(), saxSource.getLexicalHandler());
callback.saxResult(saxSource.getHandler(), saxSource.getLexicalHandler()); return;
callback.saxResult(saxSource.getHandler(), saxSource.getLexicalHandler()); return;
LexicalHandler lexicalHandler = target.getLexicalHandler();
SAXResult sax = (SAXResult) result; transform(node, sax.getHandler(), sax.getLexicalHandler());