Code example for BasicHeader

0
    public InputStream getContent() {
        return mStream;
    } 
 
    public Header getContentEncoding() {
        return new BasicHeader("Content-Encoding", "UTF-8");
    } 
 
    public long getContentLength() { 
        try { 
            if (mStream != null) {
                return mStream.available();
            } else { 
                return -1; 
            } 
        } catch (IOException e) {
            return -1; 
        } 
    } 
 
    public Header getContentType() {