Nomad changes
All checks were successful
Deploy fil (kreuzberg) / deploy (push) Successful in 49s

This commit is contained in:
Henrik Jess Nielsen
2026-06-01 23:40:55 +02:00
parent 72b1a0a6ed
commit b4c07d3693
5723 changed files with 1130655 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
package dev.kreuzberg;
import java.util.List;
/**
* Bridge interface for the DocumentExtractor plugin system.
*
* Implementations are wrapped by DocumentExtractorBridge and exposed to the native
* runtime through Panama FFM upcall stubs.
*/
public interface IDocumentExtractor {
/** Plugin name (used for registry keying). */
String name();
/** Plugin version. */
String version();
/** Initialize the plugin. */
default void initialize() throws Exception {}
/** Shut down the plugin. */
default void shutdown() throws Exception {}
/** extract_bytes. */ String extract_bytes(byte[] content, String mime_type, ExtractionConfig config) throws Exception;
/** extract_file. */ String extract_file(java.nio.file.Path path, String mime_type, ExtractionConfig config) throws Exception;
/** supported_mime_types. */ List<String> supported_mime_types() throws Exception;
/** priority. */ int priority() throws Exception;
/** can_handle. */ boolean can_handle(java.nio.file.Path _path, String _mime_type) throws Exception;
}