-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathReadArchiveOptions.js
More file actions
23 lines (19 loc) · 924 Bytes
/
ReadArchiveOptions.js
File metadata and controls
23 lines (19 loc) · 924 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
import Options from "./Options.js";
import Constants from '../Constants.js';
/**
* @typedef {Object} ReadArchiveOptionsObject
* @property {number} [centralDirectoryBufferSize]
* @property {boolean} [createEntryIndex]
* @property {EntryOptions|EntryOptionsObject} [entryOptions]
* @property {boolean} [ignoreMultiDiskErrors]
* @property {boolean} [allowTruncatedCentralDirectory]
* @property {boolean} [allowAdditionalCentralDirectoryEntries]
*/
export default class ReadArchiveOptions extends Options {
/** @type {number} */ centralDirectoryBufferSize = Constants.DEFAULT_CHUNK_SIZE;
/** @type {boolean} */ createEntryIndex = true;
/** @type {EntryOptions|EntryOptionsObject} */ entryOptions = {};
/** @type {boolean} */ ignoreMultiDiskErrors = false;
/** @type {boolean} */ allowTruncatedCentralDirectory = false;
/** @type {boolean} */ allowAdditionalCentralDirectoryEntries = false;
}