public class ChunkedTransfer extends TransferReceiver
decoder, mime| Constructor and Description |
|---|
ChunkedTransfer(MimeMessage mime,
ContentDecoder decoder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.synch.AsyncWork<Boolean,IOException> |
consume(ByteBuffer buf)
the returned work is true if the end has been reached.
|
boolean |
isExpectingData()
Return true if the transfer is not expected to be empty.
|
static net.lecousin.framework.concurrent.synch.SynchronizationPoint<IOException> |
send(net.lecousin.framework.network.TCPRemote client,
net.lecousin.framework.io.IO.Readable.Buffered data)
Send the given buffered readable by chunk.
|
static net.lecousin.framework.concurrent.synch.SynchronizationPoint<IOException> |
send(net.lecousin.framework.network.TCPRemote client,
net.lecousin.framework.io.IO.Readable data,
int bufferSize,
int maxBuffers)
Send data from the given Readable to the client using chunked transfer.
|
public ChunkedTransfer(MimeMessage mime, ContentDecoder decoder)
public net.lecousin.framework.concurrent.synch.AsyncWork<Boolean,IOException> consume(ByteBuffer buf)
TransferReceiverconsume in class TransferReceiverpublic boolean isExpectingData()
TransferReceiverisExpectingData in class TransferReceiverpublic static net.lecousin.framework.concurrent.synch.SynchronizationPoint<IOException> send(net.lecousin.framework.network.TCPRemote client, net.lecousin.framework.io.IO.Readable data, int bufferSize, int maxBuffers)
public static net.lecousin.framework.concurrent.synch.SynchronizationPoint<IOException> send(net.lecousin.framework.network.TCPRemote client, net.lecousin.framework.io.IO.Readable.Buffered data)
Copyright © 2018. All rights reserved.