public class WarcFileWriterConfig extends Object
WarcFileWriter.| Modifier and Type | Field and Description |
|---|---|
protected boolean |
bCompression
Compress archive(s).
|
boolean |
bOverwrite
Overwrite existing file(s).
|
static long |
DEFAULT_MAX_FILE_SIZE
Standard/default max file size.
|
protected Long |
maxFileSize
Max file size used to determine when to close the current ARC file and start writing to the next one.
|
protected LinkedHashMap<String,Map.Entry<String,String>> |
metadata
Array of metadata.
|
protected File |
targetDir
Target directory in which to write ARC file(s).
|
| Constructor and Description |
|---|
WarcFileWriterConfig()
Construct instance with largely default values, except the targetDir which is null.
|
WarcFileWriterConfig(File targetDir,
boolean bCompression,
long maxFileSize,
boolean bOverwrite)
Construct an instance with custom values.
|
public static final long DEFAULT_MAX_FILE_SIZE
protected boolean bCompression
protected Long maxFileSize
public boolean bOverwrite
public WarcFileWriterConfig()
public WarcFileWriterConfig(File targetDir, boolean bCompression, long maxFileSize, boolean bOverwrite)
targetDir - target directory in which to write WARC file(s)bCompression - compress archive(s)maxFileSize - max file size to determine when to move on to a fresh WARC filebOverwrite - overwrite existing file(s)Copyright © 2011–2015. All rights reserved.