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
IOException
protected abstract void readLocal() throws IOException
IOException
public byte[] getContent() throws IOException
IOException
public InputStream getBodyAsStream() throws IOException
IOException
public void write(AbstractBodyTransferrer out) throws IOException
IOException
protected abstract void writeAlreadyRead(AbstractBodyTransferrer out) throws IOException
IOException
protected abstract void writeNotRead(AbstractBodyTransferrer out) throws IOException
IOException
public int getLength() throws IOException
IOException
protected int getRawLength() throws IOException
IOException
public byte[] getRaw() throws IOException
IOException
protected abstract byte[] getRawLocal() throws IOException
IOException
public String toString()
public boolean isRead()
Copyright © 2012. All Rights Reserved.