public class FileConverter extends DefaultObjectConverter<java.io.File>
ObjectConverter implementation for <code>File</code> using the full file path.| Constructor and Description |
|---|
FileConverter() |
| Modifier and Type | Method and Description |
|---|---|
java.io.File |
fromString(java.lang.String string,
ConverterContext context)
Return null in most cases unless the generic type T is also a String.
|
java.lang.String |
toString(java.io.File file,
ConverterContext context)
Converts the value to String.
|
fromString, getObjectConverterManager, toString, toStringConverterpublic java.lang.String toString(java.io.File file,
ConverterContext context)
DefaultObjectConvertertoString in interface ObjectConverter<java.io.File>toString in class DefaultObjectConverter<java.io.File>file - the value to be concerted.context - converter context to be usedpublic java.io.File fromString(java.lang.String string,
ConverterContext context)
DefaultObjectConverterfromString in interface ObjectConverter<java.io.File>fromString in class DefaultObjectConverter<java.io.File>string - the stringcontext - context to be converted