javax.mail.Header翻译

本文介绍了Java邮件系统中Header类的基本用法,包括如何创建Header对象及获取Header的名称和值。Header类用于存储邮件头信息的名值对。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<!-- ========= START OF TOP NAVBAR ======= --> <!-- -->
JavaTM 2 Platform
Ent. Ed. v1.4
<!-- ========= END OF TOP NAVBAR ========= --> <!-- ======== START OF CLASS DATA ======== -->

javax.mail
Class Header


public class Header extends Object

The Header class stores a name/value pair to represent headers. 该Header类存储表示header的名值对。

Author:
John Mani

<!-- ======== NESTED CLASS SUMMARY ======== --><!-- =========== FIELD SUMMARY =========== --><!-- ======== CONSTRUCTOR SUMMARY ======== --><!-- -->

Constructor Summary
Header(Stringname, Stringvalue)
Construct a Header object. 构建一个Header对象。
<!-- ========== METHOD SUMMARY =========== --> <!-- -->
Method Summary
String getName()
Returns the name of this header. 返回header的名称。
String getValue()
Returns the value of this header. 返回header的值。
<!-- -->
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

<!-- ============ FIELD DETAIL =========== --><!-- ========= CONSTRUCTOR DETAIL ======== --><!-- -->

Constructor Detail
<!-- -->

Header

Construct a Header object.
Parameters:
name - name of the header header的名称
value - value of the header header的值
<!-- ============ METHOD DETAIL ========== --> <!-- -->
Method Detail
<!-- -->

getName

Returns the name of this header. 返回header的名称。
Returns:
name of the header header的名称
<!-- -->

getValue

Returns the value of this header. 返回header的值。
Returns:
value of the header header的值
<!-- ========= END OF CLASS DATA ========= --> <!-- ======= START OF BOTTOM NAVBAR ====== --> <!-- -->
JavaTM 2 Platform
Ent. Ed. v1.4
<!-- ======== END OF BOTTOM NAVBAR ======= --> Submit a bug or feature

Copyright 2003 Sun Microsystems, Inc. All rights reserved.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值