gpt4 book ai didi

java - 学习 Java 中的数据处理程序?

转载 作者:塔克拉玛干 更新时间:2023-11-02 20:13:06 26 4
gpt4 key购买 nike

我知道在 Java 中使用数据处理程序来传输文件是很好的。任何人都可以给我一个很好的例子或教程来帮助我理解这门课。

另外,这个包属于javax.activation.DataHandler,activation是什么意思?它是一个特殊的图书馆吗?

最佳答案

JavaDocs对于 javax.activation 包,在某种程度上澄清了名称中“activation”的使用。

它指的是JavaBeans Activation Framework :

With the JavaBeans Activation Framework standard extension, developers who use Java technology can take advantage of standard services to determine the type of an arbitrary piece of data, encapsulate access to it, discover the operations available on it, and to instantiate the appropriate bean to perform said operation(s). For example, if a browser obtained a JPEG image, this framework would enable the browser to identify that stream of data as an JPEG image, and from that type, the browser could locate and instantiate an object that could manipulate, or view that image.

关于java - 学习 Java 中的数据处理程序?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11059311/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com