From 6713e36e5a5415d73d9d874d5d51e367eeab309f Mon Sep 17 00:00:00 2001 From: Andrew Jackson Date: Fri, 7 Mar 2014 22:29:31 +0000 Subject: [PATCH] Added a cross-reference to the ARC implementation. --- src/main/java/org/archive/io/warc/WARCReaderFactory.java | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/main/java/org/archive/io/warc/WARCReaderFactory.java b/src/main/java/org/archive/io/warc/WARCReaderFactory.java index a02adf036..c3e5baa03 100644 --- a/src/main/java/org/archive/io/warc/WARCReaderFactory.java +++ b/src/main/java/org/archive/io/warc/WARCReaderFactory.java @@ -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 {