private static class SynchronossPartHttpMessageReader.SynchronossFilePart extends SynchronossPartHttpMessageReader.SynchronossPart implements FilePart
| Modifier and Type | Field and Description |
|---|---|
private static java.nio.file.OpenOption[] |
FILE_CHANNEL_OPTIONS |
private java.lang.String |
filename |
| Constructor and Description |
|---|
SynchronossFilePart(HttpHeaders headers,
java.lang.String filename,
StreamStorage storage) |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
filename()
Return the original filename in the client's filesystem.
|
java.lang.String |
toString() |
<any> |
transferTo(java.nio.file.Path dest)
Convenience method to copy the content of the file in this part to the
given destination file.
|
content, getStorageheaders, nameclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waittransferToprivate static final java.nio.file.OpenOption[] FILE_CHANNEL_OPTIONS
private final java.lang.String filename
SynchronossFilePart(HttpHeaders headers, java.lang.String filename, StreamStorage storage)
public java.lang.String filename()
FilePartpublic <any> transferTo(java.nio.file.Path dest)
FileParttransferTo in interface FilePartdest - the target fileMono with the result of the file transfer,
possibly IllegalStateException if the part isn't a fileFilePart.transferTo(File)public java.lang.String toString()
toString in class SynchronossPartHttpMessageReader.AbstractSynchronossPart