Uses of Class
org.miaixz.bus.http.plugin.httpv.Downloads
Packages that use Downloads
Package
Description
Provides the core implementation classes for the Httpv client, including task management, execution, data conversion,
and WebSocket support.
-
Uses of Downloads in org.miaixz.bus.http.plugin.httpv
Methods in org.miaixz.bus.http.plugin.httpv that return DownloadsModifier and TypeMethodDescriptionCoverTasks.Executor.download(CoverHttp<?> coverHttp, File file, InputStream input, long skipBytes) Creates a new download task handler.Downloads.nextOnIO()Specifies that the next callback to be set (e.g., onSuccess, onFailure) should be executed on an I/O thread.Downloads.setAppended()Enables append mode.Downloads.setBuffSize(int buffSize) Sets the buffer size for reading from the input stream.Downloads.setFilePointer(long seekBytes) Sets the file pointer to a specific position.Downloads.setOnFailure(Callback<Downloads.Failure> onFailure) Sets the callback to be executed when the download fails.Downloads.setOnSuccess(Callback<File> onSuccess) Sets the callback to be executed when the download completes successfully.Downloads the response body to the specified file.Downloads the response body to a file at the specified path.Downloads the response body to the specified directory.Downloads the response body to the specified directory.Methods in org.miaixz.bus.http.plugin.httpv with parameters of type Downloads