public void open() throws IOException {
        mConnection.connect();
        mContentType = mConnection.getContentType();
        mResponseCode = mConnection.getResponseCode();
        mContentEncoding = mConnection.getContentEncoding();
    }
public void open ( ) throws IOException { mConnection . connect ( ) ; mContentType = mConnection . getContentType ( ) ; mResponseCode = mConnection . getResponseCode ( ) ; mContentEncoding = mConnection . getContentEncoding ( ) ; }
Open connection to the resource.

@throws IOException if an error occurs connecting to server.