Code example for HttpEntity

Methods: consumeContent, getContent

0
				switch(statusLine.getStatusCode()) {
				case 200: 
				case 201: 
				case 204: 
					if (entity != null) {
						return getBlob(new FlushedInputStream(entity.getContent()));
					} 
					break; 
				} 
			} catch (ClientProtocolException e) {
				Log.e(TAG, e.toString());
				try { 
					httpRequest.abort();
				} catch (UnsupportedOperationException ignore) {
					Log.e(TAG, ignore.toString());
				} 
			} catch (IOException e) {
				Log.e(TAG, e.toString());
				try { 
					httpRequest.abort();
				} catch (UnsupportedOperationException ignore) {
					Log.e(TAG, ignore.toString());
				} 
			} finally { 
				if (entity != null) {
					try { 
						entity.consumeContent();
					} catch (IOException e) {
						Log.e(TAG, e.toString());
					}					 
				} 
			}