Example usage for org.apache.commons.lang3.time DateFormatUtils DateFormatUtils

List of usage examples for org.apache.commons.lang3.time DateFormatUtils DateFormatUtils

Introduction

In this page you can find the example usage for org.apache.commons.lang3.time DateFormatUtils DateFormatUtils.

Prototype

public DateFormatUtils() 

Source Link

Document

DateFormatUtils instances should NOT be constructed in standard programming.

This constructor is public to permit tools that require a JavaBean instance to operate.

Usage

From source file:org.beangle.ems.system.web.action.FileAction.java

public String list() {
    String path = getPath();/*w  w w .  j  a  v a2s . c o  m*/
    File curFile = new File(path);
    if (curFile.exists()) {
        File[] files = list(curFile);
        put("files", files);
        put("path", path);
        if (null != curFile.getParent()) {
            put("parent", curFile.getParent());
        }
    }
    put("dateformat", new DateFormatUtils());
    put("mimeType", new FileMimeType(mimeTypeProvider));
    return forward();
}