Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8144967

javax.xml.transform.Source and org.xml.sax.InputSource can be empty

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • xml
    • b102

      Both javax.xml.transform.Source and org.xml.sax.InputSource can be empty.

      javax.xml.transform.Source has four subtypes: DOMSource, SAXSource, StAXSource and StreamSource. Three of them, DOMSource, SAXSource, and StreamSource, include the no-argument constructor that when used, creates empty Source.

      org.xml.sax.InputSource also include a no-argument constructor.

      Since a Source object contains multiple inputs (publicId, systemId, byte or character stream), a convenient method isEmpty() would make it easier to evaluate whether a Source object is empty.

            joehw Joe Wang
            joehw Joe Wang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: