public class IdentityTransfer extends TransferReceiver
decoder, mime| Constructor and Description |
|---|
IdentityTransfer(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 buffer readable to the network using the TCP client.
|
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 the data from the given Readable to the client, using default transfer.
|
public IdentityTransfer(MimeMessage mime, ContentDecoder decoder) throws IOException
IOExceptionpublic boolean isExpectingData()
TransferReceiverisExpectingData in class TransferReceiverpublic net.lecousin.framework.concurrent.synch.AsyncWork<Boolean,IOException> consume(ByteBuffer buf)
TransferReceiverconsume 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.