Java Code Examples for javax.xml.transform.sax.SAXResult#getLexicalHandler()

The following examples show how to use javax.xml.transform.sax.SAXResult#getLexicalHandler() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: SaxSerializer.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 2
Source File: SaxSerializer.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 3
Source File: SaxSerializer.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 4
Source File: SaxSerializer.java    From openjdk-jdk8u-backup with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 5
Source File: SaxSerializer.java    From openjdk-jdk9 with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 6
Source File: SaxSerializer.java    From hottub with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 7
Source File: SaxSerializer.java    From openjdk-8-source with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 8
Source File: SaxSerializer.java    From openjdk-8 with GNU General Public License v2.0 4 votes vote down vote up
public SaxSerializer(SAXResult result) {
    this(result.getHandler(),result.getLexicalHandler());
}
 
Example 9
Source File: AbstractMarshaller.java    From spring-analysis-note with MIT License 3 votes vote down vote up
/**
 * 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);
}
 
Example 10
Source File: AbstractMarshaller.java    From java-technology-stack with MIT License 3 votes vote down vote up
/**
 * 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);
}
 
Example 11
Source File: AbstractMarshaller.java    From spring4-understanding with Apache License 2.0 3 votes vote down vote up
/**
 * 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);
}