URLConnection.getContentLength

URLConnection.getContentLength

Class Overview | Class Members | This Package | All Packages

Syntax
public int getContentLength()
Returns
the content length of the resource that this connection's URL references, or -1 if the content length is not known.
Description
Returns the value of the content-length header field.