Skip to content

Commit

Permalink
review comments : restore the old constructor for LzoOutputStream.
Browse files Browse the repository at this point in the history
  • Loading branch information
Raghu Angadi committed Jul 27, 2011
1 parent f011c24 commit e8c4f2b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/java/com/hadoop/compression/lzo/LzopCodec.java
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public CompressionOutputStream createIndexedOutputStream(OutputStream out,

@Override
public CompressionOutputStream createOutputStream(OutputStream out,
Compressor compressor) throws IOException {
Compressor compressor) throws IOException {
return createIndexedOutputStream(out, null, compressor);
}

Expand Down
6 changes: 6 additions & 0 deletions src/java/com/hadoop/compression/lzo/LzopOutputStream.java
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ protected static void writeLzopHeader(OutputStream out,
}
}

public LzopOutputStream(OutputStream out, Compressor compressor,
int bufferSize, LzoCompressor.CompressionStrategy strategy)
throws IOException {
this(out, null, compressor, bufferSize, strategy);
}

public LzopOutputStream(OutputStream out, DataOutputStream indexOut,
Compressor compressor, int bufferSize,
LzoCompressor.CompressionStrategy strategy)
Expand Down

0 comments on commit e8c4f2b

Please sign in to comment.