jdk/src/share/classes/java/net/URLConnection.java
changeset 14894 05fd2420efc0
parent 14342 8435a30053c1
child 18156 edb590d448c5
equal deleted inserted replaced
14788:04e1b9e94cd5 14894:05fd2420efc0
   127  * an <code>http</code> connection can be found at:
   127  * an <code>http</code> connection can be found at:
   128  * <blockquote><pre>
   128  * <blockquote><pre>
   129  * <a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</a>
   129  * <a href="http://www.ietf.org/rfc/rfc2616.txt">http://www.ietf.org/rfc/rfc2616.txt</a>
   130  * </pre></blockquote>
   130  * </pre></blockquote>
   131  *
   131  *
   132  * Note about <code>fileNameMap</code>: In versions prior to JDK 1.1.6,
       
   133  * field <code>fileNameMap</code> of <code>URLConnection</code> was public.
       
   134  * In JDK 1.1.6 and later, <code>fileNameMap</code> is private; accessor
       
   135  * and mutator methods {@link #getFileNameMap() getFileNameMap} and
       
   136  * {@link #setFileNameMap(java.net.FileNameMap) setFileNameMap} are added
       
   137  * to access it.  This change is also described on the <a href=
       
   138  * "http://java.sun.com/products/jdk/1.2/compatibility.html">
       
   139  * Compatibility</a> page.
       
   140  *
       
   141  * Invoking the <tt>close()</tt> methods on the <tt>InputStream</tt> or <tt>OutputStream</tt> of an
   132  * Invoking the <tt>close()</tt> methods on the <tt>InputStream</tt> or <tt>OutputStream</tt> of an
   142  * <tt>URLConnection</tt> after a request may free network resources associated with this
   133  * <tt>URLConnection</tt> after a request may free network resources associated with this
   143  * instance, unless particular protocol specifications specify different behaviours
   134  * instance, unless particular protocol specifications specify different behaviours
   144  * for it.
   135  * for it.
   145  *
   136  *
   303 
   294 
   304     /**
   295     /**
   305      * Loads filename map (a mimetable) from a data file. It will
   296      * Loads filename map (a mimetable) from a data file. It will
   306      * first try to load the user-specific table, defined
   297      * first try to load the user-specific table, defined
   307      * by &quot;content.types.user.table&quot; property. If that fails,
   298      * by &quot;content.types.user.table&quot; property. If that fails,
   308      * it tries to load the default built-in table at
   299      * it tries to load the default built-in table.
   309      * lib/content-types.properties under java home.
       
   310      *
   300      *
   311      * @return the FileNameMap
   301      * @return the FileNameMap
   312      * @since 1.2
   302      * @since 1.2
   313      * @see #setFileNameMap(java.net.FileNameMap)
   303      * @see #setFileNameMap(java.net.FileNameMap)
   314      */
   304      */