Package it.unimi.dsi.law.warc.tool
Class ListGZWarcComments
java.lang.Object
it.unimi.dsi.law.warc.tool.ListGZWarcComments
public class ListGZWarcComments extends Object
A tool to list the GZip header comments contained in a compressed WARC file.
-
Field Summary
Fields Modifier and Type Field Description static String
DEFAULT_BUFFER_SIZE
-
Constructor Summary
Constructors Constructor Description ListGZWarcComments()
-
Method Summary
Modifier and Type Method Description static void
main(String[] arg)
static void
run(FastBufferedInputStream in, PrintWriter pw)
Writes on the given writer the GZip header comment filed.
-
Field Details
-
DEFAULT_BUFFER_SIZE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
ListGZWarcComments
public ListGZWarcComments()
-
-
Method Details
-
run
public static void run(FastBufferedInputStream in, PrintWriter pw) throws IOException, WarcRecord.FormatExceptionWrites on the given writer the GZip header comment filed.- Parameters:
in
- the input stream.pw
- the writer.- Throws:
IOException
WarcRecord.FormatException
-
main
- Throws:
Exception
-