Modifier and Type | Method and Description |
---|---|
java.lang.String |
filename()
Return the original filename in the client's filesystem.
|
default reactor.core.publisher.Mono<java.lang.Void> |
transferTo(java.io.File dest)
Convenience method to copy the content of the file in this part to the
given destination file.
|
reactor.core.publisher.Mono<java.lang.Void> |
transferTo(java.nio.file.Path dest)
Convenience method to copy the content of the file in this part to the
given destination file.
|
java.lang.String filename()
default reactor.core.publisher.Mono<java.lang.Void> transferTo(java.io.File dest)
The default implementation delegates to transferTo(Path)
.
dest
- the target fileMono
with the result of the file transfer,
possibly IllegalStateException
if the part isn't a filetransferTo(Path)
reactor.core.publisher.Mono<java.lang.Void> transferTo(java.nio.file.Path dest)
dest
- the target fileMono
with the result of the file transfer,
possibly IllegalStateException
if the part isn't a filetransferTo(File)