Uses of Class
org.netpreserve.jwarc.FetchOptions
Packages that use FetchOptions
Package
Description
Classes for parsing, serializing and manipulating WARC records.
-
Uses of FetchOptions in org.netpreserve.jwarc
Methods in org.netpreserve.jwarc that return FetchOptionsModifier and TypeMethodDescriptionFetchOptions.copyTo(OutputStream copyTo) If specified the response will also be copied to this OutputStream as well as the WARC file.FetchOptions.maxLength(long bytes) Stops the fetch after this many bytes are received (including any protocol headers).FetchOptions.maxTime(long millis) Stops the fetch after this many milliseconds have elapsed.FetchOptions.readTimeout(int millis) Sets the read timeout in milliseconds on the socket.Sets the User-Agent request header.Methods in org.netpreserve.jwarc with parameters of type FetchOptionsModifier and TypeMethodDescriptionWarcWriter.fetch(URI uri, FetchOptions options) Downloads a remote resource recording the request and response as WARC records.WarcWriter.fetch(URI uri, HttpRequest httpRequest, FetchOptions options) Downloads a remote resource recording the request and response as WARC records.