Class PageDataImpl

  • All Implemented Interfaces:
    TagConstants

    class PageDataImpl
    extends javax.servlet.jsp.tagext.PageData
    implements TagConstants
    An implementation of javax.servlet.jsp.tagext.PageData which builds the XML view of a given page. The XML view is built in two passes: During the first pass, the FirstPassVisitor collects the attributes of the top-level jsp:root and those of the jsp:root elements of any included pages, and adds them to the jsp:root element of the XML view. In addition, any taglib directives are converted into xmlns: attributes and added to the jsp:root element of the XML view. This pass ignores any nodes other than JspRoot and TaglibDirective. During the second pass, the SecondPassVisitor produces the XML view, using the combined jsp:root attributes determined in the first pass and any remaining pages nodes (this pass ignores any JspRoot and TaglibDirective nodes).
    • Field Detail

      • CDATA_START_SECTION

        private static final java.lang.String CDATA_START_SECTION
        See Also:
        Constant Field Values
      • CDATA_END_SECTION

        private static final java.lang.String CDATA_END_SECTION
        See Also:
        Constant Field Values
      • CHARSET_UTF8

        private static final java.nio.charset.Charset CHARSET_UTF8
      • buf

        private java.lang.StringBuilder buf
    • Method Detail

      • getInputStream

        public java.io.InputStream getInputStream()
        Returns the input stream of the XML view.
        Specified by:
        getInputStream in class javax.servlet.jsp.tagext.PageData
        Returns:
        the input stream of the XML view