Code example for CacheRequest

Methods: getBody

0
            // on mCacheRequest directly when appropriate. 
        } 
 
        @Override 
        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