Skip to Content
SdkReactInternalClassesZipProcessor

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

ParameterType

options

ZipProcessorOptions

Returns

ZipProcessor

Properties

name

readonly name: "zip" = "zip"

Defined in: src/lib/processors/ZipProcessor.ts:26 

Unique identifier for this processor

Implementation of

FileProcessor.name


supportedExtensions

readonly supportedExtensions: 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

readonly supportedMimeTypes: 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

ParameterTypeDescription

file

FileWithData

File metadata with data URL

Returns

Promise<ProcessedFileResult | null>

Extracted text content and metadata, or null if processing fails/not applicable

Implementation of

FileProcessor.process


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

ParameterType

registry

ProcessorRegistry

Returns

void

Last updated on