System.out.println(getClass().getSimpleName() + ": Extracting content length and last modified from " + baseUrl + uri + " (" + index + ")");
try {
Head head = new Head(baseUrl + uri);
head.executeAsString();
if (head.isSuccessful()) {
return new ContentLengthAndLastModified(head.getContentLength(), head.getLastModified());
}
} catch (IOException e) {
System.err.println(getClass().getSimpleName() + ": " + e.getMessage());
}
return null;