Package io.github.astrapi69.xstream
Class ObjectToXmlFileConverter
- java.lang.Object
-
- io.github.astrapi69.xstream.ObjectToXmlFileConverter
-
- All Implemented Interfaces:
io.github.astrapi69.xml.api.ObjectToXmlFile
public class ObjectToXmlFileConverter extends java.lang.Object implements io.github.astrapi69.xml.api.ObjectToXmlFile
The classObjectToXmlFileConverter
provides a single method for convert an object to a xml file
-
-
Constructor Summary
Constructors Constructor Description ObjectToXmlFileConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> void
toXml(T object, @NonNull java.io.File file)
Converts the given object to a xml string
-
-
-
Method Detail
-
toXml
public <T> void toXml(@NonNull T object, @NonNull @NonNull java.io.File file)
Converts the given object to a xml string- Specified by:
toXml
in interfaceio.github.astrapi69.xml.api.ObjectToXmlFile
- Type Parameters:
T
- the generic type of the return type- Parameters:
object
- the object to convert to xml
-
-