annuaire recherche
android Manifest Manifest.permission Manifest.permission_group android.accessibilityservice AccessibilityService android.accounts Account android.app NotificationManager android.bluetooth BluetoothAdapter BluetoothClass BluetoothClass.Device BluetoothClass.Device.Major BluetoothClass.Service BluetoothDevice BluetoothServerSocket BluetoothSocket android.content SharedPreferences android.database.sqlite SQLiteCursorDriver SQLiteOpenHelper android.graphics Bitmap android.location LocationListener Geocoder GpsStatus GpsStatus.Listener GpsStatus.NmeaListener GpsSatellite android.media AudioFormat AsyncPlayer AudioRecord AudioRecord.OnRecordPositionUpdateListener ThumbnailUtils AudioManager android.net TrafficStats MailTo LocalSocket android.os AsyncTask AsyncTask.Status CountDownTimer Message MessageQueue HandlerThread android.text Html android.util JsonWriter android.view ContextMenu ContextMenu.ContextMenuInfo Display ViewManager View ViewStub ViewTreeObserver ViewParent WindowManager GestureDetector Gravity MenuInflater ScaleGestureDetector SoundEffectConstants android.view.inputmethod InputConnection InputMethod InputMethodSession BaseInputConnection InputMethodManager android.widget AbsListView AbsListView.LayoutParams AbsListView.OnScrollListener AbsListView.RecyclerListener AbsoluteLayout AbsoluteLayout.LayoutParams AbsSeekBar AbsSpinner AdapterView AdapterView.AdapterContextMenuInfo AdapterView.OnItemLongClickListener AdapterView.OnItemSelectedListener AdapterView.OnItemClickListener AnalogClock BaseAdapter BaseExpandableListAdapter Button CheckBox CheckedTextView Checkable Chronometer Chronometer.OnChronometerTickListener CompoundButton CompoundButton.OnCheckedChangeListener CursorAdapter CursorTreeAdapter DatePicker DatePicker.OnDateChangedListener DialerFilter DigitalClock EditText Filter Filter.FilterListener Filter.FilterResults ExpandableListAdapter ExpandableListView.OnChildClickListener ExpandableListView.OnGroupClickListener ExpandableListView.OnGroupCollapseListener ExpandableListView.OnGroupExpandListener Filterable Gallery Gallery.LayoutParams GridView GridLayout GridLayout.Alignment RadioGroup ImageView ImageView.ScaleType HorizontalScrollView ImageButton ImageSwitcher FilterQueryProvider ListAdapter ListView MediaController MultiAutoCompleteTextView MultiAutoCompleteTextView.CommaTokenizer MultiAutoCompleteTextView.Tokenizer QuickContactBadge RadioButton RatingBar RatingBar.OnRatingBarChangeListener RelativeLayout RemoteViews ResourceCursorAdapter ResourceCursorTreeAdapter Scroller ScrollView SearchView SearchView.OnCloseListener SearchView.OnQueryTextListener SearchView.OnSuggestionListener SeekBar SeekBar.OnSeekBarChangeListener SimpleAdapter SimpleAdapter.ViewBinder SimpleCursorAdapter SimpleCursorAdapter.CursorToStringConverter SimpleCursorAdapter.ViewBinder SimpleCursorTreeAdapter SimpleCursorTreeAdapter.ViewBinder SimpleExpandableListAdapter SlidingDrawer SlidingDrawer.OnDrawerCloseListener SlidingDrawer.OnDrawerOpenListener SlidingDrawer.OnDrawerScrollListener Spinner SpinnerAdapter WrapperListAdapter TabHost TabHost.TabSpec TextView TimePicker TimePicker.OnTimeChangedListener Toast TableLayout TableLayout.LayoutParams TableRow TableRow.LayoutParams TabWidget TextSwitcher ToggleButton TwoLineListItem VideoView ViewAnimator ViewFlipper ViewSwitcher ViewSwitcher.ViewFactory ZoomButtonsController ZoomButtonsController.OnZoomListener ZoomButton ZoomControls dalvik.system DexFile
personnages


MailTo

版本:Android 3.0 r1

结构

继承关系

public class MailTo extends Object

java.lang.Object

android.net.MailTo

类概述

MailTo URL解析器。这个类解析URL计划的邮件(a mailto schema URL参见这里)可用于解析参数查询。它实现了RFC 2368协议。

常量

public static final String MAILTO_SCHEME

常量值:"mailto:"

公共方法

public String getBody ()

从一个Url中获取邮件的正文内容。如果没有设置正文内容,则返回null值。

返回值

返回正文或null

public String getCc ()

从一个Url中获取抄送地址。这可能是多个电子邮件地址,以逗号分隔的空间。如果没有指定抄送地址,则返回null

返回值

逗号分隔的邮件地址或null

public Map<String, String> getHeaders ()

从一个Url中获取邮件头(Android123:比如编码类型,发送时间、IP等)

返回值

包含解析值的map

public String getSubject ()

从一个Url中获取主题。如果没有指定的主题行,则返回null值。

返回值

主题或null

public String getTo ()

从一个Url中获取收信人。这可能是多个电子邮件地址,以逗号分隔的空间。如果没指定,则返回null值。

返回值

逗号分隔的电子邮件地址或null

public static boolean isMailTo (String url)

测试判断指定字符串是否包含EmailUrl

参数

url 用于测试的字符串

返回值

如果为true,字符串是包含EmailUrl

public static MailTo parse (String url)

将指定Url字符串解析成MailTo类。这个解析器实现的RFC 2368。返回的对象可以用于查询解析的参数。

参数

url 包含EmailUrl字符串

返回值

MailTo对象

异常

ParseException 如果该结构并不是包含EmailUrl将抛出此异常。

public String toString ()

返回一个包含关于对象简洁的、大家都可以读懂的字符串。鼓励子类重写此方法,并提供一个考虑到对象的类型和数据的实现。默认的实现价于下面的表达式:

如果你打算实现自己toString方法,参见 Writing a useful toString method

返回值

表示此对象的可打印输出。

补充

文章链接

电子邮件解析android.net.MailTo (本文有参照该链接的翻译)


Article précédent: Article suivant: