public class FileConverter extends java.lang.Object implements TypeConverter<java.io.File>
File
.
If created, returned file is stored in the temporary folder.
Conversion rules:
null
value is returned as null
byte[]
content is used for creating a fileString
content is used for creating a fileThis converter is plugable and add-on file converters from other modules can be added.
Constructor and Description |
---|
FileConverter() |
Modifier and Type | Method and Description |
---|---|
java.io.File |
convert(java.lang.Object value)
Converts object received as parameter into object of another class.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
convert
public java.io.File convert(java.lang.Object value)
TypeConverter
Integer
converter tries to convert given objects
into target Integer
object. Converters should try all reasonable
ways of conversion into target object, depending on target type.convert
in interface TypeConverter<java.io.File>
value
- object to convert fromCopyright © 2003-present Jodd Team