Code example for CacheRequest

Methods: getBody

            // on mCacheRequest directly when appropriate. 
        public OutputStream getBody() throws IOException {
            return mCacheRequest.getBody();
    private static final String MAX_AGE_PREFIX = "max-age=";
    private static final String TAG = "FileResponseCache";
     * Creates a {@link ContentHandler} wrapper to capture a 
     * {@link URLConnection} using the currently installed 
     * {@link FileResponseCache}. 
     * <p> 
     * A wrapper is required to work-around platform bugs and to guard against 
     * cache corruption. It also provides a nice mechanism for passing 
Contextual code suggestions in your IDE  Get Codota for Java