All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.mo.mohttp.http.Entity Maven / Gradle / Ivy

package com.mo.mohttp.http;

import java.io.DataOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.charset.Charset;

/**
 * 
 * HTTP protocol Entity
 * https://www.w3.org/Protocols/rfc2616/rfc2616-sec7.html
 *
 * this interface is only used for {@link java.net.HttpURLConnection}
 * since that Apache HttpClient has its own impl :
 * @see org.apache.http.entity.AbstractHttpEntity
 *
*/ public interface Entity { long getContentLength(); long writeLength(); String getContentType(); Charset getContentEncoding(); void writeTo(DataOutputStream out) throws IOException; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy