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

java.util.logging.XMLFormatter.getHead needs clarification

XMLWordPrintable

    • Cause Known
    • sparc
    • solaris_2.6

      Name: sdR10048 Date: 10/07/2003


      Filed By : SPB JCK team (###@###.###)
      JDK : java full version "1.5.0-beta-b22"


      Specification excerpt:
      ======================
      --------- J2SE API spec v.1.5 ---------
      ...
      public String getHead(Handler h)
      Return the header string for a set of XML formatted records.

      Overrides:
      getHead in class Formatter
      Parameters:
      h - The target handler (can be null)
      Returns:
      header string


      ...
      ---------- end-of-excerpt ---------------

      Problem description
      ===================
      That would be nice if the javadoc for getHead(Handler)
      will say more about the output header string:

      1) is it the document level header string "<?xml ...?><log>"
         or it is limited with "<log>" tag only

      2) what is the relation between the output string and the input handler
         (encoding etc)

      3) what is the expected xml header encoding in case input handler == null

      4) what is the expected xml version in the output xml header

      ======================================================================

            Unassigned Unassigned
            dsvsunw Dsv Dsv (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: