public class ChunkedContent extends AbstractContent
CRLF
Constructor and Description |
---|
ChunkedContent(String mime,
InputStream in,
int chunkSize)
Instantiates a new chunked content.
|
Modifier and Type | Method and Description |
---|---|
protected void |
addContent(URLConnection con) |
void |
writeContent(OutputStream os) |
void |
writeHeader(OutputStream os) |
ascii, enc
public ChunkedContent(String mime, InputStream in, int chunkSize)
HttpURLConnection
), Resty will use it in streaming mode.mime
- the mimein
- the inchunkSize
- the chunk size. If chunk size is negative or 0, Resty will use
its default buffer size as chunk size.protected void addContent(URLConnection con) throws IOException
addContent
in class AbstractContent
IOException
public void writeContent(OutputStream os) throws IOException
writeContent
in class AbstractContent
IOException
public void writeHeader(OutputStream os) throws IOException
writeHeader
in class AbstractContent
IOException