public abstract class AbstractBody extends Object
| Constructor and Description |
|---|
AbstractBody() |
| Modifier and Type | Method and Description |
|---|---|
InputStream |
getBodyAsStream() |
byte[] |
getContent() |
int |
getLength() |
byte[] |
getRaw() |
protected int |
getRawLength() |
protected abstract byte[] |
getRawLocal() |
boolean |
isRead() |
void |
read() |
protected abstract void |
readLocal() |
String |
toString()
Supposes UTF-8 encoding.
|
void |
write(AbstractBodyTransferrer out) |
protected abstract void |
writeAlreadyRead(AbstractBodyTransferrer out) |
protected abstract void |
writeNotRead(AbstractBodyTransferrer out) |
public void read()
throws IOException
IOExceptionprotected abstract void readLocal()
throws IOException
IOExceptionpublic byte[] getContent()
throws IOException
IOExceptionpublic InputStream getBodyAsStream() throws IOException
IOExceptionpublic void write(AbstractBodyTransferrer out) throws IOException
IOExceptionprotected abstract void writeAlreadyRead(AbstractBodyTransferrer out) throws IOException
IOExceptionprotected abstract void writeNotRead(AbstractBodyTransferrer out) throws IOException
IOExceptionpublic int getLength()
throws IOException
IOExceptionprotected int getRawLength()
throws IOException
IOExceptionpublic byte[] getRaw()
throws IOException
IOExceptionprotected abstract byte[] getRawLocal()
throws IOException
IOExceptionpublic String toString()
public boolean isRead()
Copyright © 2012. All Rights Reserved.