public class FormatterUtils extends Object
| Constructor and Description |
|---|
FormatterUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
createParentDirectories(File file)
Creates parent directories of the given file.
|
static Formatter |
getDefaultFormatterInstance()
This method returns the default formatter to use if the user does not
specify one explicitly.
|
static Formatter |
getFormatterInstance(String name)
This method maps a formatter name to a
Formatter instance. |
static void |
setOutputTimestamp(File absolutePath,
long timestamp)
Sets the modification time of the given file to the given timestamp.
|
public static Formatter getFormatterInstance(String name)
Formatter instance.
If the formatter name is unknown, then null will be returned. The name
comparison ignores the case of the given name.name - name of the formatterFormatter instance corresponding to the name or null
if the formatter name is unknownpublic static Formatter getDefaultFormatterInstance()
public static void createParentDirectories(File file)
file - SystemException - if directory or directories cannot be createdpublic static void setOutputTimestamp(File absolutePath, long timestamp)
absolutePath - timestamp - Copyright © 2014 Quattor. All Rights Reserved.