From 862d2abfbd8dfab638cc6ed5d5e69814b9ee3f04 Mon Sep 17 00:00:00 2001 From: Kazik Pogoda Date: Mon, 16 Dec 2024 21:19:50 +0100 Subject: [PATCH] add API specs --- api/xemantic-ai-file-magic.api | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 api/xemantic-ai-file-magic.api diff --git a/api/xemantic-ai-file-magic.api b/api/xemantic-ai-file-magic.api new file mode 100644 index 0000000..7ed3fa6 --- /dev/null +++ b/api/xemantic-ai-file-magic.api @@ -0,0 +1,29 @@ +public final class com/xemantic/ai/file/magic/ContentType : java/lang/Enum { + public static final field Companion Lcom/xemantic/ai/file/magic/ContentType$Companion; + public static final field GIF Lcom/xemantic/ai/file/magic/ContentType; + public static final field JPEG Lcom/xemantic/ai/file/magic/ContentType; + public static final field PDF Lcom/xemantic/ai/file/magic/ContentType; + public static final field PNG Lcom/xemantic/ai/file/magic/ContentType; + public static final field WEBP Lcom/xemantic/ai/file/magic/ContentType; + public static fun getEntries ()Lkotlin/enums/EnumEntries; + public final fun getMime ()Ljava/lang/String; + public static fun valueOf (Ljava/lang/String;)Lcom/xemantic/ai/file/magic/ContentType; + public static fun values ()[Lcom/xemantic/ai/file/magic/ContentType; +} + +public final class com/xemantic/ai/file/magic/ContentType$Companion { + public final fun detect ([B)Lcom/xemantic/ai/file/magic/ContentType; +} + +public final class com/xemantic/ai/file/magic/ContentTypeKt { + public static final fun detectContentType ([B)Lcom/xemantic/ai/file/magic/ContentType; + public static final fun startsWith ([B[Ljava/lang/String;)Z + public static final fun startsWith-VU-fvBY ([B[B)Z +} + +public final class com/xemantic/ai/file/magic/PathsKt { + public static final fun detectContentType (Lkotlinx/io/files/Path;)Lcom/xemantic/ai/file/magic/ContentType; + public static final fun readText (Lkotlinx/io/files/Path;)Ljava/lang/String; + public static final fun toBytes (Lkotlinx/io/files/Path;)[B +} +