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