Skip to content

Commit 537f53c

Browse files
Merge pull request #14 from arcalex/issue7_OutputFile
Fix for issue #7
2 parents 6fd9ebe + 95541c7 commit 537f53c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/main/java/org/bibalex/warcrefs/Deduplicator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ private void writeWarcDedup( String warcAbsolutePath ) throws IOException
8888
warcDedupAbsolutePath );
8989

9090
// Delete the following line after testing
91-
FileOutputStream warcOutputStream2 = new FileOutputStream( "/home/msm/warcrefs/warc.gz" ); // "/home/msm/warcrefs/warc.warc.gz"
91+
//FileOutputStream warcOutputStream2 = new FileOutputStream( "/home/msm/warcrefs/warc.gz" ); // "/home/msm/warcrefs/warc.warc.gz"
9292

9393
int preOffset = 0;
9494
int preLength = 0;
@@ -133,7 +133,7 @@ private void writeWarcDedup( String warcAbsolutePath ) throws IOException
133133
// below.
134134
// TODO: should fix it by passing warcOutputStream instead of outputStream2
135135
writeRevisitRecord(
136-
warcInputStream, warcOutputStream2,
136+
warcInputStream, warcOutputStream,
137137
offset, refersToUri, refersToDate );
138138

139139
/* Skip revisit record length to read the next record
@@ -166,7 +166,7 @@ private void writeWarcDedup( String warcAbsolutePath ) throws IOException
166166
warcOutputStream.close();
167167

168168
// Delete the following line after testing
169-
warcOutputStream2.close();
169+
//warcOutputStream2.close();
170170
}
171171
catch ( Exception e )
172172
{

0 commit comments

Comments
 (0)