Moved the first-four-byte extractor ahead of the link extractor, in case
the latter runs long and exceeds the InputStream buffer.