/** * Creates a new chunk and adds to linked list. * * @param dataHead of the linked list * @param buf MIME part partial data * @return created chunk */ public Chunk createNext(DataHead dataHead, ByteBuffer buf) { return next = new Chunk(data.createNext(dataHead, buf)); } }
/** * Creates a new chunk and adds to linked list. * * @param dataHead of the linked list * @param buf MIME part partial data * @return created chunk */ public Chunk createNext(DataHead dataHead, ByteBuffer buf) { return next = new Chunk(data.createNext(dataHead, buf)); } }
/** * Creates a new chunk and adds to linked list. * * @param dataHead of the linked list * @param buf MIME part partial data * @return created chunk */ public Chunk createNext(DataHead dataHead, ByteBuffer buf) { return next = new Chunk(data.createNext(dataHead, buf)); } }
/** * Creates a new chunk and adds to linked list. * * @param dataHead of the linked list * @param buf MIME part partial data * @return created chunk */ public Chunk createNext(DataHead dataHead, ByteBuffer buf) { return next = new Chunk(data.createNext(dataHead, buf)); } }
void addBody(ByteBuffer buf) { synchronized(this) { inMemory += buf.limit(); } if (tail != null) { tail = tail.createNext(this, buf); } else { head = tail = new Chunk(new MemoryData(buf, part.msg.config)); } }
void addBody(ByteBuffer buf) { synchronized(this) { inMemory += buf.limit(); } if (tail != null) { tail = tail.createNext(this, buf); } else { head = tail = new Chunk(new MemoryData(buf, part.msg.config)); } }
void addBody(ByteBuffer buf) { synchronized(this) { inMemory += buf.limit(); } if (tail != null) { tail = tail.createNext(this, buf); } else { head = tail = new Chunk(new MemoryData(buf, part.msg.config)); } }
void addBody(ByteBuffer buf) { synchronized(this) { inMemory += buf.limit(); } if (tail != null) { tail = tail.createNext(this, buf); } else { head = tail = new Chunk(new MemoryData(buf, part.msg.config)); } }