/** Progress listener for payload transfers. */
private ProgressListener progressListener;
+ /** Whether to use “early encode.” */
+ private boolean useEarlyEncode;
+
/**
* Adds a listener to the list of registered listeners.
*
}
/**
+ * Sets whether to use the “early encode“ flag for the insert.
+ *
+ * @param useEarlyEncode
+ * {@code true} to set the “early encode” flag for the insert,
+ * {@code false} otherwise
+ */
+ public void setUseEarlyEncode(boolean useEarlyEncode) {
+ this.useEarlyEncode = useEarlyEncode;
+ }
+
+ /**
* Starts the insert.
*
* @param progressListener
}
putDir.setVerbosity(Verbosity.ALL);
putDir.setMaxRetries(-1);
- putDir.setEarlyEncode(false);
+ putDir.setEarlyEncode(useEarlyEncode);
putDir.setManifestPutter(ManifestPutter.DEFAULT);
for (ScannedFile file : files) {
FileEntry fileEntry = createFileEntry(file, edition);