public class ArcFileWriterConfig extends java.lang.Object
ArcFileWriter.| 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 |
|---|
ArcFileWriterConfig()
Construct instance with largely default values, except the targetDir which is null.
|
ArcFileWriterConfig(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 ArcFileWriterConfig()
public ArcFileWriterConfig(java.io.File targetDir, boolean bCompression, long maxFileSize, boolean bOverwrite)
targetDir - target directory in which to write ARC file(s)bCompression - compress archive(s)maxFileSize - max file size to determine when to move on to a fresh ARC filebOverwrite - overwrite existing file(s)Copyright © 2011–2022. All rights reserved.