Package it.unimi.dsi.law.warc.tool
Class CompressWarc
java.lang.Object
it.unimi.dsi.law.warc.tool.CompressWarc
public class CompressWarc extends Object
A tool to compress a WARC file.
-
Constructor Summary
Constructors Constructor Description CompressWarc()
-
Method Summary
Modifier and Type Method Description static void
main(String[] arg)
static void
run(FastBufferedInputStream in, OutputStream out)
This method reads from a given input stream a sequence of uncompressed WARC records and writes to a given output stream a compressed version of them.
-
Constructor Details
-
CompressWarc
public CompressWarc()
-
-
Method Details
-
run
public static void run(FastBufferedInputStream in, OutputStream out) throws IOException, WarcRecord.FormatExceptionThis method reads from a given input stream a sequence of uncompressed WARC records and writes to a given output stream a compressed version of them.- Parameters:
in
- the input stream.out
- the output stream.- Throws:
IOException
WarcRecord.FormatException
-
main
- Throws:
Exception
-