Registry / utility / jakarta-activation-api

jakarta-activation-api

JSON →
library2.1.4javamavenunverified

The Jakarta Activation API provides a framework for determining the type of an arbitrary piece of data and encapsulating access to it.

<dependency> <groupId>jakarta.activation</groupId> <artifactId>jakarta.activation-api</artifactId> <version>2.1.4</version> </dependency>
INSTALL
IMPORT
SIG · JAKARTA-ACTIVATION
J
jakarta-activation-api
utilityjavav2.1.4
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

DataHandler
jakarta.activation.DataHandler

Minimal usage of Jakarta Activation API to create a DataHandler from a file.

import jakarta.activation.DataHandler; import jakarta.activation.DataSource; import jakarta.activation.FileDataSource; public class Main { public static void main(String[] args) { DataSource ds = new FileDataSource("file.txt"); DataHandler dh = new DataHandler(ds); System.out.println(dh.getContentType()); } }
Debug
Known issues

No known issues recorded.

Upgrade
Version history
2.1.4latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
8 hits · last 30 days
node
8
Resources
jakarta-activation-api — mvn dependency:get jakarta-activation-api · libregistry