src/share/classes/java/net/URLConnection.java
Print this page
rev 10048 : 8044740: Convert all JDK versions used in @since tag to 1.n[.n] in jdk repo
Reviewed-by:
*** 153,163 ****
* @see java.net.URLConnection#setDoInput(boolean)
* @see java.net.URLConnection#setDoOutput(boolean)
* @see java.net.URLConnection#setIfModifiedSince(long)
* @see java.net.URLConnection#setRequestProperty(java.lang.String, java.lang.String)
* @see java.net.URLConnection#setUseCaches(boolean)
! * @since JDK1.0
*/
public abstract class URLConnection {
/**
* The URL represents the remote object on the World Wide Web to
--- 153,163 ----
* @see java.net.URLConnection#setDoInput(boolean)
* @see java.net.URLConnection#setDoOutput(boolean)
* @see java.net.URLConnection#setIfModifiedSince(long)
* @see java.net.URLConnection#setRequestProperty(java.lang.String, java.lang.String)
* @see java.net.URLConnection#setUseCaches(boolean)
! * @since 1.0
*/
public abstract class URLConnection {
/**
* The URL represents the remote object on the World Wide Web to
*** 281,291 ****
* @since 1.6
*/
private MessageHeader requests;
/**
! * @since JDK1.1
*/
private static FileNameMap fileNameMap;
/**
* @since 1.2.2
--- 281,291 ----
* @since 1.6
*/
private MessageHeader requests;
/**
! * @since 1.1
*/
private static FileNameMap fileNameMap;
/**
* @since 1.2.2
*** 493,503 ****
* long.
*
* @return the content length of the resource that this connection's URL
* references, or {@code -1} if the content length is
* not known.
! * @since 7.0
*/
public long getContentLengthLong() {
return getHeaderFieldLong("content-length", -1);
}
--- 493,503 ----
* long.
*
* @return the content length of the resource that this connection's URL
* references, or {@code -1} if the content length is
* not known.
! * @since 1.7
*/
public long getContentLengthLong() {
return getHeaderFieldLong("content-length", -1);
}
*** 621,631 ****
* @param name the name of the header field.
* @param Default the default value.
* @return the value of the named field, parsed as a long. The
* {@code Default} value is returned if the field is
* missing or malformed.
! * @since 7.0
*/
public long getHeaderFieldLong(String name, long Default) {
String value = getHeaderField(name);
try {
return Long.parseLong(value);
--- 621,631 ----
* @param name the name of the header field.
* @param Default the default value.
* @return the value of the named field, parsed as a long. The
* {@code Default} value is returned if the field is
* missing or malformed.
! * @since 1.7
*/
public long getHeaderFieldLong(String name, long Default) {
String value = getHeaderField(name);
try {
return Long.parseLong(value);