Skip to content
This repository has been archived by the owner on Jul 7, 2023. It is now read-only.

Commit

Permalink
Added a cross-reference to the ARC implementation.
Browse files Browse the repository at this point in the history
  • Loading branch information
anjackson committed Mar 7, 2014
1 parent 08b9442 commit 6713e36
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/main/java/org/archive/io/warc/WARCReaderFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -100,11 +100,15 @@ public static ArchiveReader get(final String s, final InputStream is,
atFirstRecord);
}

/*
* Note that the ARC companion does this differently, with quite a lot of duplication.
*
* @see org.archive.io.arc.ARCReaderFactory.getArchiveReader(String, InputStream, boolean)
*/
protected ArchiveReader getArchiveReader(final String f,
final InputStream is, final boolean atFirstRecord)
throws IOException {
// Check if it's compressed:
// TODO Currently relies on the file extension, but this should all really sniff the content properly.
// Check if it's compressed, based on file extension.
if( f.endsWith(".gz") ) {
return new CompressedWARCReader(f, is, atFirstRecord);
} else {
Expand Down

0 comments on commit 6713e36

Please sign in to comment.