public class WarcFileWriterConfig extends java.lang.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 java.lang.Long |
maxFileSize
Max file size used to determine when to close the current ARC file and start writing to the next one.
|
protected java.util.LinkedHashMap<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.String>> |
metadata
Array of metadata.
|
protected java.io.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(java.io.File targetDir,
boolean bCompression,
long maxFileSize,
boolean bOverwrite)
Construct an instance with custom values.
|
public static final long DEFAULT_MAX_FILE_SIZE
protected java.io.File targetDir
protected boolean bCompression
protected java.lang.Long maxFileSize
public boolean bOverwrite
protected java.util.LinkedHashMap<java.lang.String,java.util.Map.Entry<java.lang.String,java.lang.String>> metadata
public WarcFileWriterConfig()
public WarcFileWriterConfig(java.io.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–2023. All rights reserved.