Code example for CacheRequest

Methods: abort

0
            mCookie = cookie;
        } 
 
        public void abort() { 
            if (mCacheRequest != null) {
                mCacheRequest.abort();
            } 
        } 
 
        public void close() throws IOException { 
            if (SDK < GINGERBREAD) {
                if (mCacheRequest != null) {
                    OutputStream output = mCacheRequest.getBody();
                    output.close();
                } 
            } else { 
                // The platform will close the output stream 
            } 
        } 
 
        public URLConnection getConnection() {