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

java.net.URLConnection doc does not specify how to close file connection

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 1.4.0
    • 1.3.0
    • docs
    • None
    • beta2
    • sparc
    • solaris_2.6



      Name: ksC84122 Date: 08/26/99


      The javadoc for java.net.URLConnection does not specify explicitly how
      to close connection to a file after calling URLConnection.getHeaderFiled(),
      getContentType(), getContentEncoding(), getHeaderFieldDate(), etc.
      The javadoc should explicitly specify that after calling these methods for a file
      URLConnection, a file gets open and user can close a connection to that file in such a way:
      getInputStream().close().
      By specifying that, user will get a legitimate way to free up a file descrtiptor.

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

            jhosunw Jamie Ho (Inactive)
            skosunw Sko Sko (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: