org.cubeengine.converter.converter
Class FileConverter
java.lang.Object
org.cubeengine.converter.converter.SimpleConverter<File>
org.cubeengine.converter.converter.FileConverter
- All Implemented Interfaces:
- ClassedConverter<File>, Converter<File,Class<? extends File>>
public class FileConverter
- extends SimpleConverter<File>
A converter for File.
|
Method Summary |
File |
fromNode(Node node)
Converts the node back into the original object |
Node |
toNode(File object)
Converts the object into a serializable Node |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FileConverter
public FileConverter()
toNode
public Node toNode(File object)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the object into a serializable Node
- Specified by:
toNode in class SimpleConverter<File>
- Parameters:
object - the object to convert
- Returns:
- the converted object
- Throws:
ConversionException
fromNode
public File fromNode(Node node)
throws ConversionException
- Description copied from class:
SimpleConverter
- Converts the node back into the original object
- Specified by:
fromNode in class SimpleConverter<File>
- Parameters:
node - the node to convert
- Returns:
- the converted node
- Throws:
ConversionException
Copyright © 2013–2017. All rights reserved.