Skip to content

Commit

Permalink
add API specs
Browse files Browse the repository at this point in the history
  • Loading branch information
morisil committed Dec 16, 2024
1 parent 7c8a14d commit 862d2ab
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions api/xemantic-ai-file-magic.api
Original file line number Diff line number Diff line change
@@ -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
}

0 comments on commit 862d2ab

Please sign in to comment.