Package org.reflections.serializers
Class XmlSerializer
- java.lang.Object
-
- org.reflections.serializers.XmlSerializer
-
- All Implemented Interfaces:
Serializer
public class XmlSerializer extends Object implements Serializer
serialization of Reflections to xmlan example of produced xml:
<?xml version="1.0" encoding="UTF-8"?> <Reflections> <SubTypesScanner> <entry> <key>com.google.inject.Module</key> <values> <value>fully.qualified.name.1</value> <value>fully.qualified.name.2</value> ...
-
-
Constructor Summary
Constructors Constructor Description XmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Reflectionsread(InputStream inputStream)reads the input stream into a new Reflections instance, populating it's storeFilesave(Reflections reflections, String filename)saves a Reflections instance into the given filenameStringtoString(Reflections reflections)returns a string serialization of the given Reflections instance
-
-
-
Method Detail
-
read
public Reflections read(InputStream inputStream)
Description copied from interface:Serializerreads the input stream into a new Reflections instance, populating it's store- Specified by:
readin interfaceSerializer
-
save
public File save(Reflections reflections, String filename)
Description copied from interface:Serializersaves a Reflections instance into the given filename- Specified by:
savein interfaceSerializer
-
toString
public String toString(Reflections reflections)
Description copied from interface:Serializerreturns a string serialization of the given Reflections instance- Specified by:
toStringin interfaceSerializer
-
-