ZipProcessor
Defined in: src/lib/processors/ZipProcessor.ts:25
Processor for ZIP archive files that extracts contents and delegates to other processors for supported file types
Implements
Constructors
Constructor
new ZipProcessor(
options:ZipProcessorOptions):ZipProcessor
Defined in: src/lib/processors/ZipProcessor.ts:43
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
ZipProcessor
Properties
name
readonlyname:"zip"="zip"
Defined in: src/lib/processors/ZipProcessor.ts:26
Unique identifier for this processor
Implementation of
supportedExtensions
readonlysupportedExtensions:string[]
Defined in: src/lib/processors/ZipProcessor.ts:32
File extensions this processor can handle (fallback if MIME type unavailable)
Implementation of
FileProcessor.supportedExtensions
supportedMimeTypes
readonlysupportedMimeTypes:string[]
Defined in: src/lib/processors/ZipProcessor.ts:27
MIME types this processor can handle
Implementation of
FileProcessor.supportedMimeTypes
Methods
process()
process(
file:FileWithData):Promise<ProcessedFileResult|null>
Defined in: src/lib/processors/ZipProcessor.ts:56
Process a file and extract text content
Parameters
| Parameter | Type | Description |
|---|---|---|
|
|
File metadata with data URL |
Returns
Promise<ProcessedFileResult | null>
Extracted text content and metadata, or null if processing fails/not applicable
Implementation of
setRegistry()
setRegistry(
registry:ProcessorRegistry):void
Defined in: src/lib/processors/ZipProcessor.ts:52
Set the processor registry for handling nested files This must be called before processing if you want nested file support
Parameters
| Parameter | Type |
|---|---|
|
|
Returns
void