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

What does DataHandler.getInputStream do for DataHandler(Object, String)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.0fcs
    • alpha
    • other-libs
    • None
    • 1.0fcs
    • generic
    • solaris_2.6
    • Verified

        Additional javadoc information is needed for getInputStream in the DataHandler(Object,String) case:

        Returns an InputStream representing the object's content by piping the writeTo method of the DataContentHandler. The resulting input stream will be empty unless a custom DataContenHandler is provided which accesses the writes out the object's content in it's writeTo method.

        Without this information, users, of Jaf won't know what will be required to get a useful InputStream in the Object case. The documentation may also need to distinguish between the description of the behavior of the reference implementation, and the required semantics for every implementation.

        Note that the behavior of returning an empty stream is the subject of another bug. If that is corrected, then this documentation should reflect the improved behavior, rather than what is stated above.



              duke J. Duke
              duke J. Duke
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: