org.xml.sax.DTDHandler Java Examples

The following examples show how to use org.xml.sax.DTDHandler. 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: SAXBufferProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    _dtdHandler = handler;
}
 
Example #2
Source File: JAXBSource.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    this.dtdHandler = handler;
}
 
Example #3
Source File: IncrementalSAXSource_Filter.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler)
{
  clientDTDHandler=handler;
}
 
Example #4
Source File: SAXBufferProcessor.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return _dtdHandler;
}
 
Example #5
Source File: MarshallingSource.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
@Nullable
public DTDHandler getDTDHandler() {
	return this.dtdHandler;
}
 
Example #6
Source File: AbstractXMLReader.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
public void setDTDHandler(@Nullable DTDHandler dtdHandler) {
	this.dtdHandler = dtdHandler;
}
 
Example #7
Source File: IncrementalSAXSource_Filter.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler)
{
  clientDTDHandler=handler;
}
 
Example #8
Source File: SAXDocumentParser.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    _dtdHandler = handler;
}
 
Example #9
Source File: ResolvingParser.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
/** SAX Parser API. */
public void setDTDHandler(DTDHandler handler) {
  dtdHandler = handler;
}
 
Example #10
Source File: JAXBSource.java    From jdk1.8-source-analysis with Apache License 2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return dtdHandler;
}
 
Example #11
Source File: IncrementalSAXSource_Filter.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler)
{
  clientDTDHandler=handler;
}
 
Example #12
Source File: SAXBufferProcessor.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return _dtdHandler;
}
 
Example #13
Source File: JAXBSource.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return dtdHandler;
}
 
Example #14
Source File: SAXDocumentParser.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return _dtdHandler;
}
 
Example #15
Source File: AbstractXMLReader.java    From spring-analysis-note with MIT License 4 votes vote down vote up
@Override
@Nullable
public DTDHandler getDTDHandler() {
	return this.dtdHandler;
}
 
Example #16
Source File: IncrementalSAXSource_Filter.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler)
{
  clientDTDHandler=handler;
}
 
Example #17
Source File: SAXDocumentParser.java    From openjdk-jdk8u with GNU General Public License v2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return _dtdHandler;
}
 
Example #18
Source File: AbstractXMLReader.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
@Nullable
public DTDHandler getDTDHandler() {
	return this.dtdHandler;
}
 
Example #19
Source File: MarshallingSource.java    From java-technology-stack with MIT License 4 votes vote down vote up
@Override
public void setDTDHandler(@Nullable DTDHandler dtdHandler) {
	this.dtdHandler = dtdHandler;
}
 
Example #20
Source File: SAXBufferProcessor.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    _dtdHandler = handler;
}
 
Example #21
Source File: JAXBSource.java    From JDKSourceCode1.8 with MIT License 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    this.dtdHandler = handler;
}
 
Example #22
Source File: SAXDocumentParser.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public DTDHandler getDTDHandler() {
    return _dtdHandler;
}
 
Example #23
Source File: JAXBSource.java    From jdk8u60 with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    this.dtdHandler = handler;
}
 
Example #24
Source File: JAXBSource.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    this.dtdHandler = handler;
}
 
Example #25
Source File: SAXDocumentParser.java    From TencentKona-8 with GNU General Public License v2.0 4 votes vote down vote up
public void setDTDHandler(DTDHandler handler) {
    _dtdHandler = handler;
}
 
Example #26
Source File: XMLStreamBuffer.java    From openjdk-jdk8u with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write the contents of the buffer to a {@link ContentHandler}.
 *
 * <p>
 * If the <code>handler</code> is also an instance of other SAX-based
 * handlers, such as {@link LexicalHandler}, than corresponding SAX events
 * will be reported to those handlers.
 *
 * @param handler
 *      The ContentHandler to receive SAX events.
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 *
 * @throws SAXException
 *      if a parsing fails, or if {@link ContentHandler} throws a {@link SAXException}.
 */
public final void writeTo(ContentHandler handler, boolean produceFragmentEvent) throws SAXException {
    SAXBufferProcessor p = readAsXMLReader(produceFragmentEvent);
    p.setContentHandler(handler);
    if (p instanceof LexicalHandler) {
        p.setLexicalHandler((LexicalHandler)handler);
    }
    if (p instanceof DTDHandler) {
        p.setDTDHandler((DTDHandler)handler);
    }
    if (p instanceof ErrorHandler) {
        p.setErrorHandler((ErrorHandler)handler);
    }
    p.process();
}
 
Example #27
Source File: XMLStreamBuffer.java    From jdk8u60 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write the contents of the buffer to a {@link ContentHandler} with errors
 * report to a {@link ErrorHandler}.
 *
 * <p>
 * If the <code>handler</code> is also an instance of other SAX-based
 * handlers, such as {@link LexicalHandler}, than corresponding SAX events
 * will be reported to those handlers.
 *
 * @param handler
 * The ContentHandler to receive SAX events.
 * @param errorHandler
 * The ErrorHandler to receive error events.
 *
 * @throws SAXException
 *      if a parsing fails and {@link ErrorHandler} throws a {@link SAXException},
 *      or if {@link ContentHandler} throws a {@link SAXException}.
 */
public final void writeTo(ContentHandler handler, ErrorHandler errorHandler, boolean produceFragmentEvent) throws SAXException {
    SAXBufferProcessor p = readAsXMLReader(produceFragmentEvent);
    p.setContentHandler(handler);
    if (p instanceof LexicalHandler) {
        p.setLexicalHandler((LexicalHandler)handler);
    }
    if (p instanceof DTDHandler) {
        p.setDTDHandler((DTDHandler)handler);
    }

    p.setErrorHandler(errorHandler);

    p.process();
}
 
Example #28
Source File: XMLStreamBuffer.java    From TencentKona-8 with GNU General Public License v2.0 3 votes vote down vote up
/**
 * Write the contents of the buffer to a {@link ContentHandler}.
 *
 * <p>
 * If the <code>handler</code> is also an instance of other SAX-based
 * handlers, such as {@link LexicalHandler}, than corresponding SAX events
 * will be reported to those handlers.
 *
 * @param handler
 *      The ContentHandler to receive SAX events.
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 *
 * @throws SAXException
 *      if a parsing fails, or if {@link ContentHandler} throws a {@link SAXException}.
 */
public final void writeTo(ContentHandler handler, boolean produceFragmentEvent) throws SAXException {
    SAXBufferProcessor p = readAsXMLReader(produceFragmentEvent);
    p.setContentHandler(handler);
    if (p instanceof LexicalHandler) {
        p.setLexicalHandler((LexicalHandler)handler);
    }
    if (p instanceof DTDHandler) {
        p.setDTDHandler((DTDHandler)handler);
    }
    if (p instanceof ErrorHandler) {
        p.setErrorHandler((ErrorHandler)handler);
    }
    p.process();
}
 
Example #29
Source File: DOM2TO.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * This class is only used internally so this method should never
 * be called.
 */
public void setDTDHandler(DTDHandler handler) throws NullPointerException {
}
 
Example #30
Source File: XMLReaderAdapter.java    From openjdk-jdk8u with GNU General Public License v2.0 2 votes vote down vote up
/**
 * Register the DTD event handler.
 *
 * @param handler The new DTD event handler.
 * @see org.xml.sax.Parser#setDTDHandler
 */
public void setDTDHandler (DTDHandler handler)
{
    xmlReader.setDTDHandler(handler);
}