| Package | Description |
|---|---|
| org.netpreserve.jwarc |
Classes for parsing, serializing and manipulating WARC records.
|
| Modifier and Type | Method and Description |
|---|---|
FetchOptions |
FetchOptions.copyTo(OutputStream copyTo)
If specified the response will also be copied to this OutputStream as well as the WARC file.
|
FetchOptions |
FetchOptions.maxLength(long bytes)
Stops the fetch after this many bytes are received (including any protocol headers).
|
FetchOptions |
FetchOptions.maxTime(long millis)
Stops the fetch after this many milliseconds have elapsed.
|
FetchOptions |
FetchOptions.readTimeout(int millis)
Sets the read timeout in milliseconds on the socket.
|
FetchOptions |
FetchOptions.userAgent(String userAgent)
Sets the User-Agent request header.
|
| Modifier and Type | Method and Description |
|---|---|
FetchResult |
WarcWriter.fetch(URI uri,
FetchOptions options)
Downloads a remote resource recording the request and response as WARC records.
|
FetchResult |
WarcWriter.fetch(URI uri,
HttpRequest httpRequest,
FetchOptions options)
Downloads a remote resource recording the request and response as WARC records.
|
Copyright © 2024. All rights reserved.