本文整理了Java中java.text.SimpleDateFormat.formatToCharacterIterator()
方法的一些代码示例,展示了SimpleDateFormat.formatToCharacterIterator()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。SimpleDateFormat.formatToCharacterIterator()
方法的具体详情如下:
包路径:java.text.SimpleDateFormat
类名称:SimpleDateFormat
方法名:formatToCharacterIterator
[英]Formats the specified object using the rules of this simple date format and returns an AttributedCharacterIterator with the formatted date and attributes.
[中]使用此简单日期格式的规则格式化指定对象,并返回带有格式化日期和属性的AttributedCharacterIterator。
代码示例来源:origin: pentaho/pentaho-kettle
/**
* See <code>SimpleDateFormat</code> description. This is dummy method to deprecate using parent implementation for
* <code>Timestamp</code> until it is not fully implemented.
*/
@Override
public AttributedCharacterIterator formatToCharacterIterator( Object obj ) {
if ( obj instanceof Timestamp ) {
throw new IllegalArgumentException(
"This functionality for Timestamp object has not been implemented yet" );
}
if ( compatibleToSuperPattern ) {
return super.formatToCharacterIterator( obj );
} else {
throw new IllegalArgumentException(
"This functionality for specified format pattern has not been implemented yet" );
}
}
代码示例来源:origin: stackoverflow.com
return localSimpleDateFormat.get().formatToCharacterIterator(obj);
代码示例来源:origin: org.leapframework/leap-lang
@Override
public synchronized AttributedCharacterIterator formatToCharacterIterator(Object obj) {
return format.formatToCharacterIterator(obj);
}
代码示例来源:origin: org.refcodes/refcodes-date
/**
* {@inheritDoc}
*
* @deprecated as it is not considered to be thread safe.
*/
@Deprecated
@Override
public AttributedCharacterIterator formatToCharacterIterator( Object obj ) {
return super.formatToCharacterIterator( obj );
}
代码示例来源:origin: novoda/notils
public AttributedCharacterIterator formatToCharacterIterator(Object object) {
return localSimpleDateFormat.get().formatToCharacterIterator(object);
}
代码示例来源:origin: com.novoda/notils
public AttributedCharacterIterator formatToCharacterIterator(Object object) {
return localSimpleDateFormat.get().formatToCharacterIterator(object);
}
代码示例来源:origin: EvoSuite/evosuite
public AttributedCharacterIterator formatToCharacterIterator(Object obj) {
Capturer.capture(Instrumenter.CAPTURE_ID_JAVA_TEXT_SIMPLEDATEFORMAT, this, "formatToCharacterIterator", "(Ljava/lang/Object;)Ljava/text/AttributedCharacterIterator;", new Object[] {obj});
AttributedCharacterIterator ret = super.formatToCharacterIterator(obj);
Capturer.enable(Instrumenter.CAPTURE_ID_JAVA_TEXT_SIMPLEDATEFORMAT, this, ret);
return ret;
}
内容来源于网络,如有侵权,请联系作者删除!