Constructor and Description |
---|
FilePathFormatter()
Create a new formatter.
|
FilePathFormatter(String nullValue)
Create a new formatter.
|
Modifier and Type | Method and Description |
---|---|
String |
format(File file)
Format a value by converting it to a string.
|
File |
parseString(String value)
Parse a string and return a value of the correct type.
|
private String nullValue
public FilePathFormatter()
public FilePathFormatter(String nullValue)
nullValue
- The string to return if a null item is
passed to format(File)
public String format(File file)
Formatter
public File parseString(String value)
Formatter
parseString
in interface Formatter<File>
value
- The string to parseUnsupportedOperationException
- Always