软件包 | 描述 |
---|---|
java.text |
提供用于处理独立于自然语言的方式处理文本、日期、数字和消息的类和接口。
|
Modifier and Type | Method and Description |
---|---|
abstract StringBuffer |
DateFormat.format(Date date, StringBuffer toAppendTo, FieldPosition fieldPosition)
将日期格式化为日期/时间字符串。
|
StringBuffer |
SimpleDateFormat.format(Date date, StringBuffer toAppendTo, FieldPosition pos)
给定的
Date 进入日期/时间线和附加的结果给出的
StringBuffer 格式。
|
abstract StringBuffer |
NumberFormat.format(double number, StringBuffer toAppendTo, FieldPosition pos)
格式专业化。
|
StringBuffer |
ChoiceFormat.format(double number, StringBuffer toAppendTo, FieldPosition status)
带格式化的双返回模式。
|
StringBuffer |
DecimalFormat.format(double number, StringBuffer result, FieldPosition fieldPosition)
格式化一个双产生一个字符串。
|
abstract StringBuffer |
NumberFormat.format(long number, StringBuffer toAppendTo, FieldPosition pos)
格式专业化。
|
StringBuffer |
ChoiceFormat.format(long number, StringBuffer toAppendTo, FieldPosition status)
格式专业化。
|
StringBuffer |
DecimalFormat.format(long number, StringBuffer result, FieldPosition fieldPosition)
格式很长,产生一个字符串。
|
StringBuffer |
MessageFormat.format(Object[] arguments, StringBuffer result, FieldPosition pos)
格式对象数组和附加的
MessageFormat 的模式,具有格式元素的格式化对象所取代,所提供的
StringBuffer 。
|
abstract StringBuffer |
Format.format(Object obj, StringBuffer toAppendTo, FieldPosition pos)
格式对象和将产生的文本到一个给定的字符串缓冲区。
|
StringBuffer |
NumberFormat.format(Object number, StringBuffer toAppendTo, FieldPosition pos)
格式的数量和将产生的文本的字符串缓冲区。
|
StringBuffer |
MessageFormat.format(Object arguments, StringBuffer result, FieldPosition pos)
格式对象数组和附加的
MessageFormat 的模式,具有格式元素的格式化对象所取代,所提供的
StringBuffer 。
|
StringBuffer |
DateFormat.format(Object obj, StringBuffer toAppendTo, FieldPosition fieldPosition)
重写格式。
|
StringBuffer |
DecimalFormat.format(Object number, StringBuffer toAppendTo, FieldPosition pos)
格式的数量和将产生的文本的字符串缓冲区。
|
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.