接口 FilePart
方法概要
所有方法 实例方法 抽象方法 默认方法 修饰符和类型 方法 说明 String
filename()
Return the original filename in the client's filesystem.default reactor.core.publisher.Mono<Void>
transferTo(File dest)
Convenience method to copy the content of the file in this part to the given destination file.reactor.core.publisher.Mono<Void>
transferTo(Path dest)
Convenience method to copy the content of the file in this part to the given destination file.
方法详细资料
transferTo
default reactor.core.publisher.Mono<Void> transferTo(File dest)
Convenience method to copy the content of the file in this part to the given destination file. If the destination file already exists, it will be truncated first.The default implementation delegates to
transferTo(Path)
.- 参数:
dest
- the target file- 返回:
- completion
Mono
with the result of the file transfer, possiblyIllegalStateException
if the part isn't a file - 另请参阅:
transferTo(Path)
transferTo
reactor.core.publisher.Mono<Void> transferTo(Path dest)
Convenience method to copy the content of the file in this part to the given destination file. If the destination file already exists, it will be truncated first.- 参数:
dest
- the target file- 返回:
- completion
Mono
with the result of the file transfer, possiblyIllegalStateException
if the part isn't a file - 从以下版本开始:
- 5.1
- 另请参阅:
transferTo(File)