common/src/main/java/HTTPClient/Codecs.java
/**
     * Encodes data used the chunked encoding. <var>last</var> signales if
     * this is the last chunk, in which case the appropriate footer is
     * generated.
     *
     * @param data  the data to be encoded; may be null.
     * @param ftrs  optional headers to include in the footer (ignored if
     *              not last); may be null.
     * @param last  whether this is the last chunk.
     * @return an array of bytes containing the chunk
     */
Encodes data used the chunked encoding. last signales if
this is the last chunk, in which case the appropriate footer is
generated.

@param data  the data to be encoded; may be null.
@param ftrs  optional headers to include in the footer (ignored if
not last); may be null.
@param last  whether this is the last chunk.
@return an array of bytes containing the chunk
Encodes data used the chunked encoding . last signales if this is the last chunk in which case the appropriate footer is generated . @param data the data to be encoded ; may be null . @param ftrs optional headers to include in the footer ( ignored if not last ) ; may be null . @param last whether this is the last chunk . @return an array of bytes containing the chunk
public final static byte[] chunkedEncode(byte[] data, NVPair[] ftrs,
					     boolean last)
    {
	return
	    chunkedEncode(data, 0, data == null ? 0 : data.length, ftrs, last);
    }
public final static byte [ ] chunkedEncode ( byte [ ] data , NVPair [ ] ftrs , boolean last ) { return chunkedEncode ( data , 0 , data == null ? 0 : data . length , ftrs , last ) ; }
Encodes data used the chunked encoding.
Encodes data used the chunked encoding .