public class Chunk extends Object
Constructor and Description |
---|
Chunk(byte[] content) |
Modifier and Type | Method and Description |
---|---|
int |
copyChunk(byte[] raw,
int destPos) |
int |
copyChunkLength(byte[] raw,
int destPos,
AbstractBody body) |
byte[] |
getContent() |
int |
getLength() |
String |
toString()
Supposes UTF-8 encoding.
|
void |
write(OutputStream out) |
public byte[] getContent()
public int getLength()
public void write(OutputStream out) throws IOException
IOException
public String toString()
public int copyChunk(byte[] raw, int destPos)
public int copyChunkLength(byte[] raw, int destPos, AbstractBody body)
Copyright © 2012. All Rights Reserved.