Code example for InputStreamEntity

Methods: setContentType

0
 
      public HttpUriRequest createRequest(URI var1) {
         HttpPost var2 = new HttpPost(var1);
         var2.addHeader("X-HTTP-Method-Override", "PUT");
         InputStream var3 = this.mMediaInputStream;
         InputStreamEntity var4 = new InputStreamEntity(var3, 65535L);
         String var5 = this.mContentType;
         var4.setContentType(var5);
         var2.setEntity(var4);
         return var2;
      } 
   } 
 
   private static class GetRequestCreator implements AndroidGDataClient.HttpRequestCreator { 
 
      public GetRequestCreator() {} 
 
      public HttpUriRequest createRequest(URI var1) {
         return new HttpGet(var1);
      } 
Stop searching for code, let great code find you!  Add Codota to your java IDE