org.xml.sax.DTDHandler#com.sun.xml.internal.stream.buffer.sax.SAXBufferProcessor源码实例Demo

下面列出了org.xml.sax.DTDHandler#com.sun.xml.internal.stream.buffer.sax.SAXBufferProcessor 实例代码,或者点击链接到github查看源代码,也可以在右侧发表评论。

源代码1 项目: TencentKona-8   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码2 项目: TencentKona-8   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码3 项目: jdk8u60   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码4 项目: jdk8u60   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码5 项目: openjdk-jdk8u   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码6 项目: openjdk-jdk8u   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码7 项目: openjdk-jdk8u-backup   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码8 项目: openjdk-jdk8u-backup   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码9 项目: openjdk-jdk9   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码10 项目: openjdk-jdk9   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码11 项目: hottub   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码12 项目: hottub   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码13 项目: openjdk-8-source   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码14 项目: openjdk-8-source   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码15 项目: openjdk-8   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码16 项目: openjdk-8   文件: XMLStreamBuffer.java
/**
 * 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();
}
 
源代码17 项目: TencentKona-8   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码18 项目: TencentKona-8   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}
 
源代码19 项目: jdk8u60   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码20 项目: jdk8u60   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}
 
源代码21 项目: openjdk-jdk8u   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码22 项目: openjdk-jdk8u   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}
 
源代码23 项目: openjdk-jdk8u-backup   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码24 项目: openjdk-jdk8u-backup   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}
 
源代码25 项目: openjdk-jdk9   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码26 项目: openjdk-jdk9   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}
 
源代码27 项目: hottub   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码28 项目: hottub   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}
 
源代码29 项目: openjdk-8-source   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @return
 * A an instance of a {@link SAXBufferProcessor}.
 * @deprecated
 *      Use {@link #readAsXMLReader(boolean)}
 */
public final SAXBufferProcessor readAsXMLReader() {
    return new SAXBufferProcessor(this,isFragment());
}
 
源代码30 项目: openjdk-8-source   文件: XMLStreamBuffer.java
/**
 * Reads the contents of the buffer from a {@link XMLReader}.
 *
 * @param produceFragmentEvent
 *      True to generate fragment SAX events without start/endDocument.
 *      False to generate a full document SAX events.
 * @return
 *      A an instance of a {@link SAXBufferProcessor}.
 */
public final SAXBufferProcessor readAsXMLReader(boolean produceFragmentEvent) {
    return new SAXBufferProcessor(this,produceFragmentEvent);
}