public static class MimeEntity.Transfer extends Object implements net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException>
net.lecousin.framework.concurrent.util.PartialAsyncConsumer.ConsumerQueue<T,TError extends Exception>, net.lecousin.framework.concurrent.util.PartialAsyncConsumer.Converter<T,TError extends Exception,Target,TErrorTarget extends Exception>, net.lecousin.framework.concurrent.util.PartialAsyncConsumer.ErrorConverter<T,TErrorSource extends Exception,TErrorTarget extends Exception>| Constructor and Description |
|---|
Transfer(MimeEntityFactory entityFactory)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
net.lecousin.framework.concurrent.async.AsyncSupplier<Boolean,IOException> |
consume(ByteBuffer data) |
protected net.lecousin.framework.concurrent.async.AsyncSupplier<Boolean,IOException> |
consumeBody(ByteBuffer data) |
protected void |
endOfHeaders() |
MimeEntity |
getEntity() |
boolean |
isExpectingData() |
public Transfer(MimeEntityFactory entityFactory)
public net.lecousin.framework.concurrent.async.AsyncSupplier<Boolean,IOException> consume(ByteBuffer data)
consume in interface net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException>protected void endOfHeaders()
throws IOException
IOExceptionprotected net.lecousin.framework.concurrent.async.AsyncSupplier<Boolean,IOException> consumeBody(ByteBuffer data)
public boolean isExpectingData()
isExpectingData in interface net.lecousin.framework.concurrent.util.PartialAsyncConsumer<ByteBuffer,IOException>public MimeEntity getEntity()
Copyright © 2020. All rights reserved.