public interface HttpServerFileUpload extends ReadStream<Buffer>
| Modifier and Type | Method and Description |
|---|---|
String |
charset() |
String |
contentTransferEncoding() |
String |
contentType() |
HttpServerFileUpload |
endHandler(Handler<Void> endHandler)
Set an end handler.
|
HttpServerFileUpload |
exceptionHandler(Handler<Throwable> handler)
Set an exception handler on the read stream.
|
HttpServerFileUpload |
fetch(long amount)
Fetch the specified
amount of elements. |
AsyncFile |
file() |
String |
filename() |
HttpServerFileUpload |
handler(Handler<Buffer> handler)
Set a data handler.
|
boolean |
isSizeAvailable() |
String |
name() |
HttpServerFileUpload |
pause()
Pause the
ReadStream, it sets the buffer in fetch mode and clears the actual demand. |
HttpServerFileUpload |
resume()
Resume reading, and sets the buffer in
flowing mode. |
long |
size()
The size of the upload may not be available until it is all read.
|
HttpServerFileUpload |
streamToFileSystem(String filename)
Stream the content of this upload to the given file on storage.
|
pipe, pipeTo, pipeToHttpServerFileUpload exceptionHandler(Handler<Throwable> handler)
ReadStreamexceptionHandler in interface ReadStream<Buffer>exceptionHandler in interface StreamBasehandler - the exception handlerHttpServerFileUpload handler(Handler<Buffer> handler)
ReadStreamhandler in interface ReadStream<Buffer>HttpServerFileUpload endHandler(Handler<Void> endHandler)
ReadStreamendHandler in interface ReadStream<Buffer>HttpServerFileUpload pause()
ReadStreamReadStream, it sets the buffer in fetch mode and clears the actual demand.
While it's paused, no data will be sent to the data handler.
pause in interface ReadStream<Buffer>HttpServerFileUpload resume()
ReadStreamflowing mode.
If the ReadStream has been paused, reading will recommence on it.resume in interface ReadStream<Buffer>HttpServerFileUpload fetch(long amount)
ReadStreamamount of elements. If the ReadStream has been paused, reading will
recommence with the specified amount of items, otherwise the specified amount will
be added to the current stream demand.fetch in interface ReadStream<Buffer>HttpServerFileUpload streamToFileSystem(String filename)
filename - the name of the fileString filename()
String name()
String contentType()
String contentTransferEncoding()
String charset()
long size()
isSizeAvailable() to determine thisboolean isSizeAvailable()
true if the size of the upload can be retrieved via size().AsyncFile file()
streamToFileSystem(java.lang.String) has been usedCopyright © 2021 Eclipse. All rights reserved.