java.lang.Object
io.helidon.webclient.FileSubscriber
- All Implemented Interfaces:
Flow.Subscriber<DataChunk>
@Deprecated(forRemoval=true)
public final class FileSubscriber
extends Object
implements Flow.Subscriber<DataChunk>
Deprecated, for removal: This API element is subject to removal in a future version.
A file writer that subscribes to chunks of data.
-
Method Summary
Modifier and TypeMethodDescriptionstatic FileSubscriberDeprecated, for removal: This API element is subject to removal in a future version.Create a subscriber that consumesDataChunksand writes them to a file.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidDeprecated, for removal: This API element is subject to removal in a future version.voidonSubscribe(Flow.Subscription subscription) Deprecated, for removal: This API element is subject to removal in a future version.subscribeTo(Flow.Publisher<DataChunk> publisher) Deprecated, for removal: This API element is subject to removal in a future version.Subscribes this instance to the obtained publisher.
-
Method Details
-
subscribeTo
Deprecated, for removal: This API element is subject to removal in a future version.Subscribes this instance to the obtained publisher.- Parameters:
publisher- publisher- Returns:
- completion stage of the saving process
-
create
Deprecated, for removal: This API element is subject to removal in a future version.Create a subscriber that consumesDataChunksand writes them to a file. A temporary file is created first to download the whole content and it is then moved to the final destination.- Parameters:
filePath- path of the final file- Returns:
- subscriber to consume
DataChunk
-
onSubscribe
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onSubscribein interfaceFlow.Subscriber<DataChunk>
-
onNext
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onNextin interfaceFlow.Subscriber<DataChunk>
-
onError
Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onErrorin interfaceFlow.Subscriber<DataChunk>
-
onComplete
public void onComplete()Deprecated, for removal: This API element is subject to removal in a future version.- Specified by:
onCompletein interfaceFlow.Subscriber<DataChunk>
-
IoMulti.writeToFile(java.nio.file.Path)instead