public class ChunkedBody extends AbstractBody
ChunkedBodyTransferrer for writing a body using chunks.chunks, observers| Constructor and Description |
|---|
ChunkedBody(InputStream in) |
| Modifier and Type | Method and Description |
|---|---|
void |
discard() |
InputStream |
getContentAsStream() |
protected int |
getRawLength() |
protected byte[] |
getRawLocal() |
protected void |
markAsRead() |
void |
read() |
protected void |
readLocal() |
void |
write(AbstractBodyTransferrer out) |
protected void |
writeAlreadyRead(AbstractBodyTransferrer out) |
protected void |
writeNotRead(AbstractBodyTransferrer out) |
protected void |
writeStreamed(AbstractBodyTransferrer out)
Is called when there are no observers that need to read the body.
|
getContent, getLength, getObservers, getRaw, hasRelevantObservers, isRead, setWasStreamed, toString, wasStreamedpublic ChunkedBody(InputStream in)
public void read()
throws IOException
read in class AbstractBodyIOExceptionpublic void write(AbstractBodyTransferrer out) throws IOException
write in class AbstractBodyIOExceptionprotected void markAsRead()
markAsRead in class AbstractBodyprotected void readLocal()
throws IOException
readLocal in class AbstractBodyIOExceptionpublic void discard()
throws IOException
discard in class AbstractBodyIOExceptionpublic InputStream getContentAsStream() throws IOException
getContentAsStream in class AbstractBodyIOExceptionprotected void writeNotRead(AbstractBodyTransferrer out) throws IOException
writeNotRead in class AbstractBodyIOExceptionprotected void writeStreamed(AbstractBodyTransferrer out) throws IOException
AbstractBodywriteStreamed in class AbstractBodyIOExceptionprotected int getRawLength()
throws IOException
IOExceptionprotected byte[] getRawLocal()
throws IOException
getRawLocal in class AbstractBodyIOExceptionprotected void writeAlreadyRead(AbstractBodyTransferrer out) throws IOException
writeAlreadyRead in class AbstractBodyIOExceptionCopyright © 2019. All Rights Reserved.