org.netpreserve.jwarc.net.Capture Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwarc Show documentation
Show all versions of jwarc Show documentation
Java library for reading and writing WARC files with a typed API
The newest version!
package org.netpreserve.jwarc.net;
import java.net.URI;
import java.nio.file.Path;
import java.time.Instant;
/**
* An entry in the {@link CaptureIndex}.
*
* Hods the location of a particular captured version of a resource.
*/
class Capture {
private final String uri;
private final Instant date;
private final Path file;
private final long position;
Capture(String uri, Instant date) {
this(uri, date, null, -1);
}
Capture(String uri, Instant date, Path file, long position) {
this.uri = uri;
this.date = date;
this.file = file;
this.position = position;
}
Instant date() {
return date;
}
String uri() {
return uri;
}
Path file() {
return file;
}
long position() {
return position;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy